summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-02-10 11:50:54 +0000
committerJosé Fonseca <[email protected]>2009-02-10 11:51:47 +0000
commit67e988a06c8ff5896da9df7ce1c7fc118352c8a3 (patch)
tree498ac0186cb618bc6f853f0def88126c5c7c2a2e /src/gallium/state_trackers
parent9fb9ee9d241c99a76e15af2db328332dfecf586d (diff)
wgl: Fix null pointer reference.
Diffstat (limited to 'src/gallium/state_trackers')
-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;
}