diff options
author | Dave Airlie <[email protected]> | 2010-05-31 19:24:50 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-05-31 19:28:08 +1000 |
commit | 47de9adece49f78c6e4065bedc69ce13272bc120 (patch) | |
tree | b8068f4a6659cae3f30330a401178bd58414e9ab /src/gallium/state_trackers | |
parent | 7ede18abac601a9cdb7be863415ee3050c591c64 (diff) |
gallium: fix TFP on gallium
This fixes an uninitialised value use in the dri2 st when doing TFP.
It uses the driContextPriv which isn't initialised at alloc time.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/dri/common/dri_context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_context.h b/src/gallium/state_trackers/dri/common/dri_context.h index 54e56c64998..b29e8533837 100644 --- a/src/gallium/state_trackers/dri/common/dri_context.h +++ b/src/gallium/state_trackers/dri/common/dri_context.h @@ -65,6 +65,8 @@ struct dri_context static INLINE struct dri_context * dri_context(__DRIcontext * driContextPriv) { + if (!driContextPriv) + return NULL; return (struct dri_context *)driContextPriv->driverPrivate; } |