mesa: Expose vbo_exec_DrawArraysInstanced as _mesa_DrawArraysInstanced.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 13 Aug 2014 23:02:17 +0000 (16:02 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 15 Aug 2014 23:53:48 +0000 (16:53 -0700)
So we can use it in meta.c.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/main/varray.h
src/mesa/vbo/vbo_exec_array.c

index f94ebac992033b556524377ce4253d050a8dacb0..d5d8b363d43820a86d37b77c75711dcf1a995d4f 100644 (file)
@@ -271,6 +271,10 @@ _mesa_UnlockArraysEXT( void );
 extern void GLAPIENTRY
 _mesa_DrawArrays(GLenum mode, GLint first, GLsizei count);
 
+extern void GLAPIENTRY
+_mesa_DrawArraysInstanced(GLenum mode, GLint first, GLsizei count,
+                          GLsizei primcount);
+
 extern void GLAPIENTRY
 _mesa_DrawElements(GLenum mode, GLsizei count, GLenum type,
                    const GLvoid *indices);
index 9c161ccca7290fb92331d46d04b1dee19b6a830f..3f7058da15a7a26655bcf5b620c75608cabb3261 100644 (file)
@@ -1890,6 +1890,12 @@ _mesa_DrawArrays(GLenum mode, GLint first, GLsizei count)
    vbo_exec_DrawArrays(mode, first, count);
 }
 
+void GLAPIENTRY
+_mesa_DrawArraysInstanced(GLenum mode, GLint first, GLsizei count,
+                          GLsizei primcount)
+{
+   vbo_exec_DrawArraysInstanced(mode, first, count, primcount);
+}
 
 void GLAPIENTRY
 _mesa_DrawElements(GLenum mode, GLsizei count, GLenum type,