From 78a34d868d3c8704a57aa2fb934233ca6c880a5f Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Thu, 30 Aug 2012 17:22:29 -0700 Subject: [PATCH] intel: avoid undefined variable warnings in intel_screen.c Reviewed-by: Matt Turner --- src/mesa/drivers/dri/intel/intel_screen.c | 5 +++-- 1 file 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, -- 2.30.2