summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2012-08-30 17:22:29 -0700
committerPaul Berry <[email protected]>2012-09-06 14:49:25 -0700
commit78a34d868d3c8704a57aa2fb934233ca6c880a5f (patch)
treea53af0031cfe98727c6cc779c9386bdca6448118 /src
parent5ceb87286f2e1b5b8527ba18a844abf450903175 (diff)
intel: avoid undefined variable warnings in intel_screen.c
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/intel/intel_screen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c
index 3470db642c6..ca6ac3446b4 100644
--- a/src/mesa/drivers/dri/intel/intel_screen.c
+++ b/src/mesa/drivers/dri/intel/intel_screen.c
@@ -778,11 +778,12 @@ intelCreateContext(gl_api api,
unsigned *error,
void *sharedContextPrivate)
{
- __DRIscreen *sPriv = driContextPriv->driScreenPriv;
- struct intel_screen *intelScreen = sPriv->driverPrivate;
bool success = false;
#ifdef I915
+ __DRIscreen *sPriv = driContextPriv->driScreenPriv;
+ struct intel_screen *intelScreen = sPriv->driverPrivate;
+
if (IS_9XX(intelScreen->deviceID)) {
success = i915CreateContext(api, mesaVis, driContextPriv,
major_version, minor_version, error,