summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-07-21 19:52:59 +0000
committerBrian Paul <[email protected]>2006-07-21 19:52:59 +0000
commit9d9d7b1deef8b4330e29b5f601fbba93b6374fd8 (patch)
treecccf16e9f99f9cf5a4604bdc5cf477afec85986b /src/mesa/drivers
parent122629f27925a9dc50029bebc5079f87f416a7e1 (diff)
check for non-nill pwc in WMesaMakeCurrent(), bug 7585
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/windows/gdi/wmesa.c2
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;
}