diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-06-23 09:53:14 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-06-23 15:35:41 -0700 |
commit | 6d025e679a99778496576af9a6a6fa8c043ae811 (patch) | |
tree | ee6436ae87610f5c912a4724217fd6f3b8c1e3de /src/i830_render.c | |
parent | 1eec83a203c48822400742a1fb184b2cb52c62f7 (diff) |
Harden i830 render in case check_composite didn't throw out bad formats.
Fixes a warning in a static analysis program, and the code's a little
clearer.
Bug #21667
Diffstat (limited to 'src/i830_render.c')
-rw-r--r-- | src/i830_render.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i830_render.c b/src/i830_render.c index 4bee5ba0..b1d6f508 100644 --- a/src/i830_render.c +++ b/src/i830_render.c @@ -250,9 +250,9 @@ i8xx_get_card_format(PicturePtr pPict) i++) { if (i830_tex_formats[i].fmt == pPict->format) - break; + return i830_tex_formats[i].card_fmt; } - return i830_tex_formats[i].card_fmt; + FatalError("Unsupported format type %d\n", pPict->format); } static Bool |