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 282db7f86c6b09c7bca0018a6544b420ebe83dd3..304d07729e40ae5c75f054fd48d613cfb781bc86 100644 (file)
@@ -695,7 +695,6 @@ static int driUnbindContext(__DRIcontext *ctx)
 {
     TRACE;
     (void) ctx;
-    _mesa_make_current(NULL, NULL, NULL);
     return GL_TRUE;
 }