From: Michal Krol Date: Fri, 20 Mar 2009 15:36:23 +0000 (+0100) Subject: stw: Do not err on nil context handle in MakeCurrent(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d6e877d0d716805907cbbaca3bcfcee84f98add6;p=mesa.git stw: Do not err on nil context handle in MakeCurrent(). --- diff --git a/src/gallium/state_trackers/wgl/shared/stw_context.c b/src/gallium/state_trackers/wgl/shared/stw_context.c index 31cb025ac56..89df8b0a2a0 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;