mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 05:28:05 +02:00
r200: Adapt cliprect fixes from r300.
This commit is contained in:
parent
88501887e4
commit
33ea9dccaf
3 changed files with 8 additions and 5 deletions
|
|
@ -673,11 +673,13 @@ r200MakeCurrent( __DRIcontextPrivate *driContextPriv,
|
|||
&newCtx->vbl_seq );
|
||||
}
|
||||
|
||||
if ( newCtx->dri.drawable != driDrawPriv ||
|
||||
newCtx->dri.readable != driReadPriv ) {
|
||||
newCtx->dri.drawable = driDrawPriv;
|
||||
newCtx->dri.readable = driReadPriv;
|
||||
newCtx->dri.readable = driReadPriv;
|
||||
|
||||
if ( newCtx->dri.drawable != driDrawPriv ||
|
||||
newCtx->lastStamp != driDrawPriv->lastStamp ) {
|
||||
newCtx->dri.drawable = driDrawPriv;
|
||||
|
||||
r200SetCliprects(newCtx, GL_BACK_LEFT);
|
||||
r200UpdateWindow( newCtx->glCtx );
|
||||
r200UpdateViewportOffset( newCtx->glCtx );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -98,7 +98,6 @@ void r200GetLock( r200ContextPtr rmesa, GLuint flags )
|
|||
r200SetCliprects( rmesa, GL_FRONT_LEFT );
|
||||
r200UpdateViewportOffset( rmesa->glCtx );
|
||||
driUpdateFramebufferSize(rmesa->glCtx, drawable);
|
||||
rmesa->lastStamp = drawable->lastStamp;
|
||||
}
|
||||
|
||||
R200_STATECHANGE( rmesa, ctx );
|
||||
|
|
|
|||
|
|
@ -1889,6 +1889,8 @@ void r200SetCliprects( r200ContextPtr rmesa, GLenum mode )
|
|||
|
||||
if (rmesa->state.scissor.enabled)
|
||||
r200RecalcScissorRects( rmesa );
|
||||
|
||||
rmesa->lastStamp = drawable->lastStamp;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue