[Piglit] [PATCH] glsl-fs-discard-mrt: Fix binding the winsys framebuffer in -fbo mode.
Eric Anholt
eric at anholt.net
Sat Nov 18 00:26:26 UTC 2017
Fixes failure on vc5 where the alpha was forced to 1 due to an rgbx
window system buffer.
---
tests/shaders/glsl-fs-discard-mrt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/shaders/glsl-fs-discard-mrt.c b/tests/shaders/glsl-fs-discard-mrt.c
index 8447cf270b96..68955fa06488 100644
--- a/tests/shaders/glsl-fs-discard-mrt.c
+++ b/tests/shaders/glsl-fs-discard-mrt.c
@@ -141,7 +141,7 @@ draw_fbo_to_screen_and_test(void)
float magenta[4] = {1, 0, 1, 0};
glUseProgram(0);
- glBindFramebuffer(GL_FRAMEBUFFER, 0);
+ glBindFramebuffer(GL_FRAMEBUFFER, piglit_winsys_fbo);
glClearColor(0.5, 0.5, 0.5, 0.5);
glClear(GL_COLOR_BUFFER_BIT);
--
2.15.0
More information about the Piglit
mailing list