From e7814f82257d43e249cdf7bb8df017db88a4057c Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Fri, 5 Mar 2010 18:29:29 -0800 Subject: fbo-blit: s/glBindFramebuffer/glBindFramebufferEXT/ Fixes build on Ubuntu 9.04. --- tests/fbo/fbo-blit.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/fbo/fbo-blit.c b/tests/fbo/fbo-blit.c index 883c92647..7a829e06a 100644 --- a/tests/fbo/fbo-blit.c +++ b/tests/fbo/fbo-blit.c @@ -143,8 +143,8 @@ piglit_display(void) fb = make_fbo((PAD + SIZE) * 2, (PAD + SIZE) * 2); - glBindFramebuffer(GL_DRAW_FRAMEBUFFER_EXT, fb); - glBindFramebuffer(GL_READ_FRAMEBUFFER_EXT, 0); + glBindFramebufferEXT(GL_DRAW_FRAMEBUFFER_EXT, fb); + glBindFramebufferEXT(GL_READ_FRAMEBUFFER_EXT, 0); glViewport(0, 0, fbo_width, fbo_height); piglit_ortho_projection(fbo_width, fbo_height, GL_FALSE); glClearColor(1.0, 0.0, 1.0, 0.0); @@ -156,8 +156,8 @@ piglit_display(void) /* Now that we have correct samples, blit things around. * FB -> WIN */ - glBindFramebuffer(GL_DRAW_FRAMEBUFFER_EXT, 0); - glBindFramebuffer(GL_READ_FRAMEBUFFER_EXT, fb); + glBindFramebufferEXT(GL_DRAW_FRAMEBUFFER_EXT, 0); + glBindFramebufferEXT(GL_READ_FRAMEBUFFER_EXT, fb); glBlitFramebufferEXT(PAD, PAD, PAD + SIZE, PAD + SIZE, PAD, PAD * 2 + SIZE, @@ -165,8 +165,8 @@ piglit_display(void) GL_COLOR_BUFFER_BIT, GL_NEAREST); /* WIN -> FB */ - glBindFramebuffer(GL_DRAW_FRAMEBUFFER_EXT, fb); - glBindFramebuffer(GL_READ_FRAMEBUFFER_EXT, 0); + glBindFramebufferEXT(GL_DRAW_FRAMEBUFFER_EXT, fb); + glBindFramebufferEXT(GL_READ_FRAMEBUFFER_EXT, 0); glBlitFramebufferEXT(PAD, PAD, PAD + SIZE, PAD + SIZE, PAD, PAD * 2 + SIZE, @@ -174,15 +174,15 @@ piglit_display(void) GL_COLOR_BUFFER_BIT, GL_NEAREST); /* FB -> WIN back to verify WIN -> FB */ - glBindFramebuffer(GL_DRAW_FRAMEBUFFER_EXT, 0); - glBindFramebuffer(GL_READ_FRAMEBUFFER_EXT, fb); + glBindFramebufferEXT(GL_DRAW_FRAMEBUFFER_EXT, 0); + glBindFramebufferEXT(GL_READ_FRAMEBUFFER_EXT, fb); glBlitFramebufferEXT(PAD, PAD * 2 + SIZE, PAD + SIZE, (PAD * 2 + SIZE) + SIZE, PAD, PAD * 3 + SIZE * 2, PAD + SIZE, (PAD * 3 + SIZE * 2) + SIZE, GL_COLOR_BUFFER_BIT, GL_NEAREST); - glBindFramebuffer(GL_FRAMEBUFFER_EXT, 0); + glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0); pass = verify_color_rect(PAD, PAD, SIZE, SIZE) && pass; pass = verify_color_rect(PAD, PAD * 2 + SIZE, SIZE, SIZE) && pass; -- cgit v1.2.3