i965: Fix compiler warning from uninitialized "success" value.
authorEric Anholt <eric@anholt.net>
Wed, 11 Jan 2012 20:07:15 +0000 (12:07 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 11 Jan 2012 20:07:15 +0000 (12:07 -0800)
This shouldn't happen, because the DDX should only load this driver if
IS_965.  But better to do something defined in that case.

src/mesa/drivers/dri/intel/intel_screen.c

index ce96ddda85cbe48116a32ec997c043a49885d7aa..b0e800b7ecce890950937f880ab88fed93334a7b 100644 (file)
@@ -525,7 +525,7 @@ intelCreateContext(gl_api api,
 {
    __DRIscreen *sPriv = driContextPriv->driScreenPriv;
    struct intel_screen *intelScreen = sPriv->driverPrivate;
-   bool success;
+   bool success = false;
 
 #ifdef I915
    if (IS_9XX(intelScreen->deviceID)) {