mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
check for non-nill pwc in WMesaMakeCurrent(), bug 7585
This commit is contained in:
parent
122629f279
commit
9d9d7b1dee
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue