stw: Do not err on nil context handle in MakeCurrent().
authorMichal Krol <michal@vmware.com>
Fri, 20 Mar 2009 15:36:23 +0000 (16:36 +0100)
committerMichal Krol <michal@vmware.com>
Fri, 20 Mar 2009 15:36:23 +0000 (16:36 +0100)
src/gallium/state_trackers/wgl/shared/stw_context.c

index 31cb025ac56b80bac3ef26e811defb87528080d6..89df8b0a2a0340ed44fba313d9899c9e0459cbe7 100644 (file)
@@ -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;