mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-22 02:00:22 +01:00
wgl: Fix null pointer reference.
This commit is contained in:
parent
9fb9ee9d24
commit
67e988a06c
1 changed files with 3 additions and 0 deletions
|
|
@ -89,6 +89,9 @@ lookup_context( DHGLRC dhglrc )
|
|||
dhglrc >= DRV_CONTEXT_MAX)
|
||||
return NULL;
|
||||
|
||||
if(!stw_icd)
|
||||
return NULL;
|
||||
|
||||
return stw_icd->ctx_array[dhglrc - 1].ctx;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue