summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-09-14 00:11:30 +0000
committerBrian Paul <[email protected]>2005-09-14 00:11:30 +0000
commita60ff20c584245c929ba755f5592e4b3791b2173 (patch)
tree5be1e9faa41040275c72e56b3bcd8164736951a3 /src/mesa/drivers/dri
parent67a8decffeada987d10da616d72c1e6ec473dfa5 (diff)
updated comment
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_context.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_context.c b/src/mesa/drivers/dri/radeon/radeon_context.c
index c6a9af9a628..ae9dd354733 100644
--- a/src/mesa/drivers/dri/radeon/radeon_context.c
+++ b/src/mesa/drivers/dri/radeon/radeon_context.c
@@ -90,6 +90,7 @@ static void radeonGetBufferSize( GLframebuffer *buffer,
LOCK_HARDWARE( rmesa );
*width = rmesa->dri.drawable->w;
*height = rmesa->dri.drawable->h;
+
UNLOCK_HARDWARE( rmesa );
}
@@ -576,8 +577,8 @@ radeonSwapBuffers( __DRIdrawablePrivate *dPriv )
}
-/* Force the context `c' to be the current context and associate with it
- * buffer `b'.
+/* Make context `c' the current context and bind it to the given
+ * drawing and reading surfaces.
*/
GLboolean
radeonMakeCurrent( __DRIcontextPrivate *driContextPriv,
@@ -592,6 +593,7 @@ radeonMakeCurrent( __DRIcontextPrivate *driContextPriv,
fprintf(stderr, "%s ctx %p\n", __FUNCTION__, (void *) newCtx->glCtx);
if ( newCtx->dri.drawable != driDrawPriv ) {
+ /* XXX we may need to validate the drawable here!!! */
driDrawableInitVBlank( driDrawPriv, newCtx->vblank_flags );
newCtx->dri.drawable = driDrawPriv;
radeonUpdateWindow( newCtx->glCtx );