diff options
author | Keith Whitwell <[email protected]> | 2008-05-01 18:50:33 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-05-01 20:49:45 +0100 |
commit | b8936ca1c22de7b0cb695ee3b392e4473fd17aa0 (patch) | |
tree | c9f4bc8624a19c354e35f73a3169b3c075378bb5 /src | |
parent | 26bcef898af4e6dfd578783ed33818a2bd38b06d (diff) |
i915: avoid crashing on bad parameter
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/i915simple/i915_screen.c | 1 |
1 files changed, 1 insertions, 0 deletions
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++) { |