i915: avoid crashing on bad parameter
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 1 May 2008 17:50:33 +0000 (18:50 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 1 May 2008 19:49:45 +0000 (20:49 +0100)
src/gallium/drivers/i915simple/i915_screen.c

index 631642e1b6bfaf72d6d220674960daedc1fa0f68..646cfd921d1698f6889bba57e49cf4c2ef831c65 100644 (file)
@@ -182,6 +182,7 @@ i915_is_format_supported( struct pipe_screen *screen,
       break;
    default:
       assert(0);
+      return FALSE;
    }
 
    for (i = 0; list[i] != PIPE_FORMAT_NONE; i++) {