fix GLX_USE_TLS breakage, fix a warning
authorBrian <brian.paul@tungstengraphics.com>
Tue, 12 Jun 2007 14:57:12 +0000 (08:57 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 12 Jun 2007 14:57:12 +0000 (08:57 -0600)
src/mesa/drivers/x11/glxapi.c

index 5f11c90c13c3f8c2d5001aa7e9958cfe2a96e8f4..309a0008d768cb1ca540ad3b512ea7df0ea77078 100644 (file)
@@ -141,7 +141,7 @@ static void
 SetCurrentContext(GLXContext c)
 {
 #if defined(GLX_USE_TLS)
-   CurrentContext = context;
+   CurrentContext = c;
 #elif defined(THREADS)
    _glthread_SetTSD(&ContextTSD, c);
 #else
@@ -1169,7 +1169,7 @@ _glxapi_get_extensions(void)
 #ifdef GLX_SGIX_pbuffer
       "GLX_SGIX_pbuffer",
 #endif
-#ifdef GLX_EXT_texture_from_pixmap,
+#ifdef GLX_EXT_texture_from_pixmap
       "GLX_EXT_texture_from_pixmap",
 #endif
       NULL