[Piglit] [PATCH] vertex-attrib-pointer-type-size-match: use a VAO for core profiles
Brian Paul
brianp at vmware.com
Thu Jul 17 12:00:12 PDT 2014
With core profile contexts, all vertex arrays must be in a vertex array object.
This fixes the test with Mesa.
v2: test for core profile instead of gl version
---
.../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..bdd1755 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_is_core_profile) {
+ 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