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 631642e..646cfd9 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++) {