summaryrefslogtreecommitdiff
path: root/src/mesa/main/context.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-07-01 01:22:25 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-07-01 01:22:25 +0000
commitbb5c84fcbc22b4fef28cf4589d6410eb3c35a496 (patch)
treeb193c36240300d9d417c0af1c14939c24baed194 /src/mesa/main/context.c
parent446e25894099ed8e1c7034d812ca4baf30a84a56 (diff)
Remove NEW_RENDERBUFFER stuff.
Now, OLD_RENDERBUFFER marks code that needs to eventually be removed when all the drivers are updated to no longer need the SetBuffer() function.
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r--src/mesa/main/context.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 2c444c80d8..ba8a456248 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1555,7 +1555,6 @@ _mesa_make_current( GLcontext *newCtx, GLframebuffer *drawBuffer,
if (drawBuffer && readBuffer) {
/* TODO: check if newCtx and buffer's visual match??? */
-#if NEW_RENDERBUFFER
ASSERT(drawBuffer->Name == 0);
ASSERT(readBuffer->Name == 0);
newCtx->WinSysDrawBuffer = drawBuffer;
@@ -1565,10 +1564,7 @@ _mesa_make_current( GLcontext *newCtx, GLframebuffer *drawBuffer,
newCtx->DrawBuffer = drawBuffer;
newCtx->ReadBuffer = readBuffer;
}
-#else
- newCtx->DrawBuffer = drawBuffer;
- newCtx->ReadBuffer = readBuffer;
-#endif
+
newCtx->NewState |= _NEW_BUFFERS;
#if _HAVE_FULL_GL