From: Eric Anholt Date: Sat, 18 Jun 2011 22:59:00 +0000 (-0700) Subject: mesa: Fix render-to-texture regression. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6f998b58bc61f2507cd53204d7567299379c42ca;p=mesa.git mesa: Fix render-to-texture regression. Accidentally introduced in fc8c4a3a7b92a1134cd3a9312063abba9e14b0fe. Fixes fbo-drawbuffers-maxtargets and friends. --- diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 07853e03ce1..8cc3fd49a34 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -1556,7 +1556,7 @@ check_begin_texture_render(struct gl_context *ctx, struct gl_framebuffer *fb) GLuint i; ASSERT(ctx->Driver.RenderTexture); - if (is_winsys_fbo(fb)); + if (is_winsys_fbo(fb)) return; /* can't render to texture with winsys framebuffers */ for (i = 0; i < BUFFER_COUNT; i++) { @@ -1576,7 +1576,7 @@ check_begin_texture_render(struct gl_context *ctx, struct gl_framebuffer *fb) static void check_end_texture_render(struct gl_context *ctx, struct gl_framebuffer *fb) { - if (is_winsys_fbo(fb)); + if (is_winsys_fbo(fb)) return; /* can't render to texture with winsys framebuffers */ if (ctx->Driver.FinishRenderTexture) {