From: Keith Whitwell Date: Thu, 1 May 2008 17:50:33 +0000 (+0100) Subject: i915: avoid crashing on bad parameter X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8936ca1c22de7b0cb695ee3b392e4473fd17aa0;p=mesa.git i915: avoid crashing on bad parameter --- diff --git a/src/gallium/drivers/i915simple/i915_screen.c b/src/gallium/drivers/i915simple/i915_screen.c index 631642e1b6b..646cfd921d1 100644 --- a/src/gallium/drivers/i915simple/i915_screen.c +++ b/src/gallium/drivers/i915simple/i915_screen.c @@ -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++) {