Mesa (gallium-0.2): stw: use shared version of make current in icd code

Keith Whitwell keithw at kemper.freedesktop.org
Mon Feb 2 12:21:35 UTC 2009


Module: Mesa
Branch: gallium-0.2
Commit: 54688ebdb259c5e8878817a411e24bd98efb8012
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=54688ebdb259c5e8878817a411e24bd98efb8012

Author: Keith Whitwell <keith at tungstengraphics.com>
Date:   Wed Jan 28 16:47:31 2009 +0000

stw: use shared version of make current in icd code

---

 src/gallium/state_trackers/wgl/icd/stw_icd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/state_trackers/wgl/icd/stw_icd.c b/src/gallium/state_trackers/wgl/icd/stw_icd.c
index 51967bf..e8ddefc 100644
--- a/src/gallium/state_trackers/wgl/icd/stw_icd.c
+++ b/src/gallium/state_trackers/wgl/icd/stw_icd.c
@@ -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 ) );




More information about the mesa-commit mailing list