[Piglit] [PATCH] vertex-attrib-pointer-type-size-match: use a VAO for GL 3.0 and later.
Brian Paul
brianp at vmware.com
Thu Jul 17 06:26:12 PDT 2014
With GL 3.0 and later, all vertex arrays must be in a vertex array object.
This fixes the test with Mesa.
---
.../vertex-attrib-pointer-type-size-match.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/spec/arb_vertex_type_2_10_10_10_rev/vertex-attrib-pointer-type-size-match.c b/tests/spec/arb_vertex_type_2_10_10_10_rev/vertex-attrib-pointer-type-size-match.c
index 6eb9596..5f0f0b9 100644
--- a/tests/spec/arb_vertex_type_2_10_10_10_rev/vertex-attrib-pointer-type-size-match.c
+++ b/tests/spec/arb_vertex_type_2_10_10_10_rev/vertex-attrib-pointer-type-size-match.c
@@ -53,6 +53,12 @@ piglit_init(int argc, char **argv)
GLint invalid_sizes[] = {
1, 2, 3
};
+ GLuint array_obj;
+
+ if (piglit_get_gl_version() >= 30) {
+ glGenVertexArrays(1, &array_obj);
+ glBindVertexArray(array_obj);
+ }
if(piglit_get_gl_version() < 33)
piglit_require_extension("GL_ARB_vertex_type_2_10_10_10_rev");
--
1.7.10.4
More information about the Piglit
mailing list