stw: use shared version of make current in icd code
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 28 Jan 2009 16:47:31 +0000 (16:47 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 28 Jan 2009 16:47:31 +0000 (16:47 +0000)
src/gallium/state_trackers/wgl/icd/stw_icd.c

index 51967bfc28b70b1ce376f70ac17e08dc3325c093..e8ddefccf873176745788729cf73f2d9534eed0b 100644 (file)
@@ -235,7 +235,7 @@ DrvReleaseContext(
       HGLRC hglrc = lookup_hglrc( dhglrc );
 
       if (hglrc != NULL) {
-         success = wglMakeCurrent( NULL, NULL );
+         success = stw_make_current( NULL, NULL );
          if (success)
             stw_icd->ctx_current = 0;
       }
@@ -274,7 +274,7 @@ DrvSetContext(
    if (hglrc == NULL)
       return NULL;
 
-   if (!wglMakeCurrent( hdc, hglrc ))
+   if (!stw_make_current( hdc, hglrc ))
       return NULL;
 
    memset( &cpt, 0, sizeof( cpt ) );