dri/swrast: make unbind a noop
authorGeorge Sapountzis <gsap7@yahoo.gr>
Fri, 13 Jun 2008 12:52:32 +0000 (15:52 +0300)
committerGeorge Sapountzis <gsap7@yahoo.gr>
Fri, 13 Jun 2008 12:52:32 +0000 (15:52 +0300)
This is for loading swrast_dri.so from libGL.

MakeContextCurrent() seems to unbind the context right after binding it and
DRI drivers also have a noop DriverAPI.UnbindContext ...

src/mesa/drivers/dri/swrast/swrast.c

index 282db7f..304d077 100644 (file)
@@ -695,7 +695,6 @@ static int driUnbindContext(__DRIcontext *ctx)
 {
     TRACE;
     (void) ctx;
-    _mesa_make_current(NULL, NULL, NULL);
     return GL_TRUE;
 }