check for non-nill pwc in WMesaMakeCurrent(), bug 7585

This commit is contained in:
Brian Paul 2006-07-21 19:52:59 +00:00
parent 122629f279
commit 9d9d7b1dee

View file

@ -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;
}