[Piglit] [PATCH 1/4] arb_vertex_array_bgra: Test that the valid usage is accepted
Ian Romanick
idr at freedesktop.org
Fri Feb 7 20:46:02 PST 2014
From: Ian Romanick <ian.d.romanick at intel.com>
This is mostly copied from vertex-array-bgra.c.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
tests/spec/arb_vertex_array_bgra/api-errors.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/spec/arb_vertex_array_bgra/api-errors.c b/tests/spec/arb_vertex_array_bgra/api-errors.c
index 9db9ca9..8000e69 100644
--- a/tests/spec/arb_vertex_array_bgra/api-errors.c
+++ b/tests/spec/arb_vertex_array_bgra/api-errors.c
@@ -44,6 +44,13 @@ piglit_init(int argc, char **argv)
piglit_require_gl_version(20);
piglit_require_extension("GL_ARB_vertex_array_bgra");
+ /* Test when size == GL_BGRA && normalized == GL_TRUE;
+ * should generate GL_NO_ERROR
+ */
+ glVertexAttribPointer(0, GL_BGRA, GL_UNSIGNED_BYTE, GL_TRUE,
+ 4 * sizeof(GLubyte), ubytes);
+ pass = piglit_check_gl_error(GL_NO_ERROR) && pass;
+
/* From the GL_ARB_vertex_array_bgra specification:
* "The error INVALID_VALUE is generated by VertexAttribPointer if
* size is BGRA and normalized is FALSE."
--
1.8.1.4
More information about the Piglit
mailing list