summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/wgl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/state_trackers/wgl')
-rw-r--r--src/gallium/state_trackers/wgl/icd/stw_icd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/wgl/icd/stw_icd.c b/src/gallium/state_trackers/wgl/icd/stw_icd.c
index 5c78c19f926..8fa9f4e667f 100644
--- a/src/gallium/state_trackers/wgl/icd/stw_icd.c
+++ b/src/gallium/state_trackers/wgl/icd/stw_icd.c
@@ -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;
}