r200: Adapt cliprect fixes from r300.

This commit is contained in:
Alan Swanson 2007-03-12 09:59:45 +01:00 committed by Michel Dänzer
parent 88501887e4
commit 33ea9dccaf
3 changed files with 8 additions and 5 deletions

View file

@ -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 );
}

View file

@ -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 );

View file

@ -1889,6 +1889,8 @@ void r200SetCliprects( r200ContextPtr rmesa, GLenum mode )
if (rmesa->state.scissor.enabled)
r200RecalcScissorRects( rmesa );
rmesa->lastStamp = drawable->lastStamp;
}