I believe there's a bug in the piglit vbo-map-remap.c test. The test fails for
me with a GL_INVALID_ENUM error that comes from glEnable(GL_VERTEX_ARRAY).
GL_VERTEX_ARRAY is a client-side capability so the error seems valid.
tests/general/vbo-map-remap.c
42 static void
43 init()
44 {
45
46 glewInit();
47 glMatrixMode(GL_PROJECTION);
48 glPushMatrix();
49 glLoadIdentity();
50 glOrtho(0, 400, 0, 300, -1, 1);
51
52 glMatrixMode(GL_MODELVIEW);
53 glPushMatrix();
54 glLoadIdentity();
55
-> 56 glEnable(GL_VERTEX_ARRAY);
57
58 glGenBuffersARB(1, &vbo);
59 glBindBufferARB(GL_ARRAY_BUFFER_ARB, vbo);
60 glBufferDataARB(GL_ARRAY_BUFFER_ARB, 12 * sizeof(GLfloat),
61 NULL, GL_DYNAMIC_DRAW);
62 }
If I remove the glEnable line, the test passes for me.
diff --git a/tests/general/vbo-map-remap.c b/tests/general/vbo-map-remap.c
index f9eb288..45fb998 100644
--- a/tests/general/vbo-map-remap.c
+++ b/tests/general/vbo-map-remap.c
@@ -53,8 +53,6 @@ init()
glPushMatrix();
glLoadIdentity();
- glEnable(GL_VERTEX_ARRAY);
-
glGenBuffersARB(1, &vbo);
glBindBufferARB(GL_ARRAY_BUFFER_ARB, vbo);
glBufferDataARB(GL_ARRAY_BUFFER_ARB, 12 * sizeof(GLfloat),
------------------------------------------------------------------------------
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev