mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 16:30:23 +01:00
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.
This commit is contained in:
parent
af0ae93863
commit
cbf280dc26
1 changed files with 0 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue