[Piglit] [PATCH] arb_shader_atomic_counters: Bind a VAO in the points case.
Eric Anholt
eric at anholt.net
Mon Mar 31 13:10:08 PDT 2014
With Ken's Mesa change, we were no longer getting any rendering. The
other two drawing paths similarly set up a VAO.
---
tests/spec/arb_shader_atomic_counters/common.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/spec/arb_shader_atomic_counters/common.c b/tests/spec/arb_shader_atomic_counters/common.c
index 638d5af..ac7627f 100644
--- a/tests/spec/arb_shader_atomic_counters/common.c
+++ b/tests/spec/arb_shader_atomic_counters/common.c
@@ -104,6 +104,8 @@ bool
atomic_counters_draw_point(GLuint prog, unsigned buf_size,
const uint32_t *buf)
{
+ GLuint vao;
+
/* Initialize the atomic counter buffer. */
glBufferData(GL_ATOMIC_COUNTER_BUFFER,
buf_size * sizeof(uint32_t),
@@ -117,9 +119,14 @@ atomic_counters_draw_point(GLuint prog, unsigned buf_size,
glClearColor(0.5, 0.5, 0.5, 0.5);
glClear(GL_COLOR_BUFFER_BIT);
+ glGenVertexArrays(1, &vao);
+ glBindVertexArray(vao);
glVertexAttrib4f(0, 0, 0, 0, 1);
+
glDrawArrays(GL_POINTS, 0, 1);
+ glDeleteVertexArrays(1, &vao);
+
return piglit_check_gl_error(GL_NO_ERROR);
}
--
1.9.1
More information about the Piglit
mailing list