diff options
author | Brian <[email protected]> | 2007-08-18 16:10:25 +0100 |
---|---|---|
committer | Brian <[email protected]> | 2007-08-18 16:11:31 +0100 |
commit | 95e84a09ce3f35f59465be28026e83c1bc40ae8a (patch) | |
tree | 81ea88ecdb757f26c9d538547b19ca8263916a09 /src/mesa/main/fbobject.c | |
parent | dcfdb63b9fde8134562cb3a4e779a36e0abb4ae5 (diff) |
remove dead code left over after fixing GL_READ/DRAW_BUFFER state issues
Diffstat (limited to 'src/mesa/main/fbobject.c')
-rw-r--r-- | src/mesa/main/fbobject.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 5cd18d02872..db04c785de4 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -1000,20 +1000,8 @@ _mesa_BindFramebufferEXT(GLenum target, GLuint framebuffer) * XXX check if re-binding same buffer and skip some of this code. */ -#if 000 - /* for window-framebuffers, re-initialize the fbo values, as they - could be wrong (makecurrent with a new drawable while still a fbo - was bound will lead to default init fbo values). - note that therefore the context ReadBuffer/DrawBuffer values are not - valid while fbo's are bound!!! */ -#endif if (bindReadBuf) { _mesa_reference_framebuffer(&ctx->ReadBuffer, newFbread); -#if 000 - if (!newFbread->Name) { - _mesa_readbuffer_update_fields(ctx, ctx->Pixel.ReadBuffer); - } -#endif } if (bindDrawBuf) { @@ -1027,17 +1015,6 @@ _mesa_BindFramebufferEXT(GLenum target, GLuint framebuffer) /* check if newly bound framebuffer has any texture attachments */ check_begin_texture_render(ctx, newFb); } - else { - /* XXX try to remove this: */ -#if 000 - GLuint i; - GLenum buffers[MAX_DRAW_BUFFERS]; - for(i = 0; i < ctx->Const.MaxDrawBuffers; i++) { - buffers[i] = ctx->Color.DrawBuffer[i]; - } - _mesa_drawbuffers(ctx, ctx->Const.MaxDrawBuffers, buffers, NULL); -#endif - } } if (ctx->Driver.BindFramebuffer) { |