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/context.c | |
parent | dcfdb63b9fde8134562cb3a4e779a36e0abb4ae5 (diff) |
remove dead code left over after fixing GL_READ/DRAW_BUFFER state issues
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 9ee7b4bec72..bb481093170 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1530,23 +1530,9 @@ _mesa_make_current( GLcontext *newCtx, GLframebuffer *drawBuffer, */ if (!newCtx->DrawBuffer || newCtx->DrawBuffer->Name == 0) { _mesa_reference_framebuffer(&newCtx->DrawBuffer, drawBuffer); -#if 000 - /* fix up the fb fields - these will end up wrong otherwise - if the DRIdrawable changes, and everything relies on them. - This is a bit messy (same as needed in _mesa_BindFramebufferEXT) */ - int i; - GLenum buffers[MAX_DRAW_BUFFERS]; - for(i = 0; i < newCtx->Const.MaxDrawBuffers; i++) { - buffers[i] = newCtx->Color.DrawBuffer[i]; - } - _mesa_drawbuffers(newCtx, newCtx->Const.MaxDrawBuffers, buffers, NULL); -#endif } if (!newCtx->ReadBuffer || newCtx->ReadBuffer->Name == 0) { _mesa_reference_framebuffer(&newCtx->ReadBuffer, readBuffer); -#if 00 - _mesa_readbuffer_update_fields(newCtx, newCtx->Pixel.ReadBuffer); -#endif } /* XXX only set this flag if we're really changing the draw/read |