diff options
author | Michel Dänzer <[email protected]> | 2007-04-29 13:52:11 +0200 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2007-04-29 13:52:11 +0200 |
commit | cbf280dc26efa2ad6a8514cd110dcdfcb7c20bd9 (patch) | |
tree | 55fe863c83a3bbe811d19194bf84d90a5509c68c /src/mesa/drivers/dri | |
parent | af0ae93863b4c876e70efa4e7406f04a3409f135 (diff) |
r300: radeonMakeCurrent cleanups.
r300UpdateWindow is superfluous or even possibly wrong here; _mesa_make_current
will set the viewport when necessary. So the conditional _mesa_set_viewport call
can go as well.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/r300/radeon_context.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_context.c b/src/mesa/drivers/dri/r300/radeon_context.c index 22f943ebf38..ef1f25dd413 100644 --- a/src/mesa/drivers/dri/r300/radeon_context.c +++ b/src/mesa/drivers/dri/r300/radeon_context.c @@ -283,7 +283,6 @@ GLboolean radeonMakeCurrent(__DRIcontextPrivate * driContextPriv, radeon->dri.drawable = driDrawPriv; radeonSetCliprects(radeon); - r300UpdateWindow(radeon->glCtx); r300UpdateViewportOffset(radeon->glCtx); } @@ -293,11 +292,6 @@ GLboolean radeonMakeCurrent(__DRIcontextPrivate * driContextPriv, (GLframebuffer *) driReadPriv-> driverPrivate); - if (!radeon->glCtx->Viewport.Width) { - _mesa_set_viewport(radeon->glCtx, 0, 0, - driDrawPriv->w, driDrawPriv->h); - } - _mesa_update_state(radeon->glCtx); } else { if (RADEON_DEBUG & DEBUG_DRI) |