Mesa (master): stw: Do not err on nil context handle in MakeCurrent().

Michał Król michal at kemper.freedesktop.org
Fri Mar 20 15:36:59 UTC 2009


Module: Mesa
Branch: master
Commit: d6e877d0d716805907cbbaca3bcfcee84f98add6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d6e877d0d716805907cbbaca3bcfcee84f98add6

Author: Michal Krol <michal at vmware.com>
Date:   Fri Mar 20 16:36:23 2009 +0100

stw: Do not err on nil context handle in MakeCurrent().

---

 .../state_trackers/wgl/shared/stw_context.c        |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/gallium/state_trackers/wgl/shared/stw_context.c b/src/gallium/state_trackers/wgl/shared/stw_context.c
index 31cb025..89df8b0 100644
--- a/src/gallium/state_trackers/wgl/shared/stw_context.c
+++ b/src/gallium/state_trackers/wgl/shared/stw_context.c
@@ -281,9 +281,6 @@ stw_make_current(
    pipe_mutex_lock( stw_dev->mutex ); 
    ctx = stw_lookup_context( hglrc );
    pipe_mutex_unlock( stw_dev->mutex );
-   
-   if (ctx == NULL)
-      return FALSE;
 
    stw_tls_get_data()->currentDC = hdc;
    stw_tls_get_data()->currentGLRC = hglrc;




More information about the mesa-commit mailing list