aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>2013-04-03 12:19:57 +0200
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>2013-04-19 16:00:03 +0200
commiteed2d8529a0714fac6330fd8aee1fd15ade722b8 (patch)
treea3bebaef201e38108d7347a9ba187f364586f2c8 /tests
parent035d0d9ba11eb57c9598b952fa5abfe0cabb4466 (diff)
ARB_ubo/maxuniformblocksize: unmap buffer before drawing with it
From the description of glMapBuffer: "A mapped data store must be unmapped with glUnmapBuffer before its buffer object is used. Otherwise an error will be generated by any GL command that attempts to dereference the buffer object's data store."
Diffstat (limited to 'tests')
-rw-r--r--tests/spec/arb_uniform_buffer_object/maxuniformblocksize.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/spec/arb_uniform_buffer_object/maxuniformblocksize.c b/tests/spec/arb_uniform_buffer_object/maxuniformblocksize.c
index e1891bbe..cc8d4a53 100644
--- a/tests/spec/arb_uniform_buffer_object/maxuniformblocksize.c
+++ b/tests/spec/arb_uniform_buffer_object/maxuniformblocksize.c
@@ -199,6 +199,7 @@ piglit_display(void)
data[(vec4s - 1) * 4 + 1] = 1.0;
data[(vec4s - 1) * 4 + 2] = 0.0;
data[(vec4s - 1) * 4 + 3] = 0.0;
+ glUnmapBuffer(GL_UNIFORM_BUFFER);
glUseProgram(prog);
i_location = glGetUniformLocation(prog, "i");