[Piglit] [piglit][PATCH] ext_transform_feedback - unmap readback buffer

Sebastian Olender sebastian.d.olender at intel.com
Thu Jun 16 15:31:11 UTC 2016


use glUnmapBuffer to release the mapping of a buffer object after use
---
 tests/spec/ext_transform_feedback/overflow-edge-cases.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/spec/ext_transform_feedback/overflow-edge-cases.c b/tests/spec/ext_transform_feedback/overflow-edge-cases.c
index 344d0ff..5c0fa70 100644
--- a/tests/spec/ext_transform_feedback/overflow-edge-cases.c
+++ b/tests/spec/ext_transform_feedback/overflow-edge-cases.c
@@ -289,6 +289,8 @@ test(int bind_size, int num_varyings, int num_primitives, int mode_index)
 			pass = GL_FALSE;
 		}
 	}
+	glUnmapBuffer(GL_TRANSFORM_FEEDBACK_BUFFER); /* unmap readback */
+
 
 	if (pass)
 		printf("PASS\n");
-- 
2.7.4



More information about the Piglit mailing list