vbo: use new no-op ArrayElement in _mesa_noop_vtxfmt_init()
authorBrian Paul <brianp@vmware.com>
Sat, 4 May 2013 01:00:07 +0000 (19:00 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 4 May 2013 01:00:07 +0000 (19:00 -0600)
As we do for the other commands which can appear between glBegin/End.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/vbo/vbo_noop.c

index 8ba4959bd1f6a8c252d8536bf5e81c8e9db639c9..f86984589f1a8fba3aee96f34141f1a19efaa3a4 100644 (file)
@@ -30,7 +30,6 @@
 
 
 #include "main/glheader.h"
-#include "main/api_arrayelt.h"
 #include "main/context.h"
 #include "main/dispatch.h"
 #include "main/dlist.h"
@@ -331,6 +330,12 @@ _mesa_noop_EvalPoint2(GLint a, GLint b)
 {
 }
 
+static void GLAPIENTRY
+_mesa_noop_ArrayElement(GLint elem)
+{
+}
+
+
 static void GLAPIENTRY
 _mesa_noop_Begin(GLenum mode)
 {
@@ -355,7 +360,7 @@ _mesa_noop_PrimitiveRestartNV(void)
 void
 _mesa_noop_vtxfmt_init(GLvertexformat * vfmt)
 {
-   vfmt->ArrayElement = _ae_ArrayElement;
+   vfmt->ArrayElement = _mesa_noop_ArrayElement;
 
    vfmt->Begin = _mesa_noop_Begin;