diff options
-rw-r--r-- | src/mesa/drivers/windows/gdi/wmesa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/windows/gdi/wmesa.c b/src/mesa/drivers/windows/gdi/wmesa.c index 8e861da5081..8dbd6f836a5 100644 --- a/src/mesa/drivers/windows/gdi/wmesa.c +++ b/src/mesa/drivers/windows/gdi/wmesa.c @@ -1321,7 +1321,7 @@ void WMesaMakeCurrent(WMesaContext c, HDC hdc) /* return if already current */ GET_CURRENT_CONTEXT(ctx); WMesaContext pwc = wmesa_context(ctx); - if (c == pwc && pwc->hDC == hdc) + if (pwc && c == pwc && pwc->hDC == hdc) return; } |