summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915simple/i915_screen.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-05-01 18:50:33 +0100
committerKeith Whitwell <[email protected]>2008-05-01 20:49:45 +0100
commitb8936ca1c22de7b0cb695ee3b392e4473fd17aa0 (patch)
treec9f4bc8624a19c354e35f73a3169b3c075378bb5 /src/gallium/drivers/i915simple/i915_screen.c
parent26bcef898af4e6dfd578783ed33818a2bd38b06d (diff)
i915: avoid crashing on bad parameter
Diffstat (limited to 'src/gallium/drivers/i915simple/i915_screen.c')
-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 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++) {