[Piglit] [PATCH 3/5] gl-3.1/draw-buffers-errors: select explicitly default framebuffer
Alejandro PiƱeiro
apinheiro at igalia.com
Wed Jan 11 21:46:54 UTC 2017
The spec quote explicitly mentions the default framebuffer, so it
makes sense to explicitly select it. This allows to get some answer
different to INVALID_OPERATION for some of the buffers.
---
tests/spec/gl-3.1/draw-buffers-errors.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/spec/gl-3.1/draw-buffers-errors.c b/tests/spec/gl-3.1/draw-buffers-errors.c
index cb1fd5b..bab644d 100644
--- a/tests/spec/gl-3.1/draw-buffers-errors.c
+++ b/tests/spec/gl-3.1/draw-buffers-errors.c
@@ -84,6 +84,8 @@ piglit_init(int argc, char **argv)
piglit_report_result(PIGLIT_SKIP);
}
+ /* Selecting the default framebuffer */
+ glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
for (i = 0; i < ARRAY_SIZE(valids); i++) {
GLenum err = 0;
glDrawBuffers(1, &valids[i]);
--
2.9.3
More information about the Piglit
mailing list