summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i915simple
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-05-01 18:50:33 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-05-01 20:49:45 +0100
commitb8936ca1c22de7b0cb695ee3b392e4473fd17aa0 (patch)
treec9f4bc8624a19c354e35f73a3169b3c075378bb5 /src/gallium/drivers/i915simple
parent26bcef898af4e6dfd578783ed33818a2bd38b06d (diff)
i915: avoid crashing on bad parameter
Diffstat (limited to 'src/gallium/drivers/i915simple')
-rw-r--r--src/gallium/drivers/i915simple/i915_screen.c1
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 631642e1b6..646cfd921d 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++) {