summaryrefslogtreecommitdiff
path: root/tests/hiz
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2013-11-24 19:58:23 +0100
committerMarek Olšák <marek.olsak@amd.com>2013-12-02 22:27:58 +0100
commitdcda816dec3601ba6cf635f65c335d6bd3fa3f66 (patch)
tree085ab87b641f6c16c1d64ee7f32dac77c5aab861 /tests/hiz
parent273da108430e5def075310e165fafdfa11f52175 (diff)
Always bind piglit_winsys_fbo instead of 0
Tested-by: Dylan Baker <baker.dylan.c@gmail.com>
Diffstat (limited to 'tests/hiz')
-rw-r--r--tests/hiz/hiz-util.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/hiz/hiz-util.c b/tests/hiz/hiz-util.c
index 6c6404e1c..83bb671b6 100644
--- a/tests/hiz/hiz-util.c
+++ b/tests/hiz/hiz-util.c
@@ -178,8 +178,8 @@ hiz_delete_fbo(GLuint fbo)
glDeleteFramebuffers(1, &fbo);
- glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
- glBindFramebuffer(GL_READ_FRAMEBUFFER, 0);
+ glBindFramebuffer(GL_DRAW_FRAMEBUFFER, piglit_winsys_fbo);
+ glBindFramebuffer(GL_READ_FRAMEBUFFER, piglit_winsys_fbo);
if (!piglit_check_gl_error(0))
piglit_report_result(PIGLIT_FAIL);
@@ -254,7 +254,7 @@ hiz_run_test_depth_test_fbo(const struct hiz_fbo_options *fbo_options)
if (!piglit_automatic) {
/* Blit the FBO to the window FB so we can see the results. */
- glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
+ glBindFramebuffer(GL_DRAW_FRAMEBUFFER, piglit_winsys_fbo);
glBlitFramebuffer(0, 0, piglit_width, piglit_height,
0, 0, piglit_width, piglit_height,
GL_COLOR_BUFFER_BIT, GL_NEAREST);
@@ -358,7 +358,7 @@ hiz_run_test_depth_read_fbo(const struct hiz_fbo_options *fbo_options)
if (!piglit_automatic) {
/* Blit the FBO to the window FB so we can see the results. */
- glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
+ glBindFramebuffer(GL_DRAW_FRAMEBUFFER, piglit_winsys_fbo);
glBlitFramebuffer(0, 0, piglit_width, piglit_height,
0, 0, piglit_width, piglit_height,
GL_COLOR_BUFFER_BIT, GL_NEAREST);
@@ -465,7 +465,7 @@ hiz_run_test_stencil_test_fbo(const struct hiz_fbo_options *fbo_options)
if (!piglit_automatic) {
/* Blit the FBO to the window FB so we can see the results. */
- glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
+ glBindFramebuffer(GL_DRAW_FRAMEBUFFER, piglit_winsys_fbo);
glBlitFramebuffer(0, 0, piglit_width, piglit_height,
0, 0, piglit_width, piglit_height,
GL_COLOR_BUFFER_BIT, GL_NEAREST);
@@ -580,7 +580,7 @@ hiz_run_test_stencil_read_fbo(const struct hiz_fbo_options *fbo_options)
if (!piglit_automatic) {
/* Blit the FBO to the window FB so we can see the results. */
- glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
+ glBindFramebuffer(GL_DRAW_FRAMEBUFFER, piglit_winsys_fbo);
glBlitFramebuffer(0, 0, piglit_width, piglit_height,
0, 0, piglit_width, piglit_height,
GL_COLOR_BUFFER_BIT, GL_NEAREST);
@@ -704,7 +704,7 @@ hiz_run_test_depth_stencil_test_fbo(const struct hiz_fbo_options *fbo_options)
if (!piglit_automatic) {
/* Blit the FBO to the window FB so we can see the results. */
- glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
+ glBindFramebuffer(GL_DRAW_FRAMEBUFFER, piglit_winsys_fbo);
glBlitFramebuffer(0, 0, piglit_width, piglit_height,
0, 0, piglit_width, piglit_height,
GL_COLOR_BUFFER_BIT, GL_NEAREST);