Mesa (master): vbo: use new no-op ArrayElement in _mesa_noop_vtxfmt_init()

Brian Paul brianp at kemper.freedesktop.org
Sat May 4 01:01:28 UTC 2013


Module: Mesa
Branch: master
Commit: 7c9e5afe812cb5ca49f10d92869fcb0e24f0b3d0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7c9e5afe812cb5ca49f10d92869fcb0e24f0b3d0

Author: Brian Paul <brianp at vmware.com>
Date:   Fri May  3 19:00:07 2013 -0600

vbo: use new no-op ArrayElement in _mesa_noop_vtxfmt_init()

As we do for the other commands which can appear between glBegin/End.

Reviewed-by: José Fonseca <jfonseca at vmware.com>

---

 src/mesa/vbo/vbo_noop.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/mesa/vbo/vbo_noop.c b/src/mesa/vbo/vbo_noop.c
index 8ba4959..f869845 100644
--- a/src/mesa/vbo/vbo_noop.c
+++ b/src/mesa/vbo/vbo_noop.c
@@ -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"
@@ -332,6 +331,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;
 




More information about the mesa-commit mailing list