diff options
author | Keith Whitwell <[email protected]> | 2008-05-01 14:19:25 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-05-01 15:37:30 +0100 |
commit | 35b0efb8c6afd319ae36e99aa578ac6c75faf2f5 (patch) | |
tree | 54f2771393bf7ac49d7971cce6bc1e2b678011f7 /src/gallium | |
parent | e97bedb302701e2e50cef664690b83a1fe6c95ed (diff) |
gallium: do something sensible on the error path to try to avoid crashing in release builds
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/util/u_gen_mipmap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_gen_mipmap.c b/src/gallium/auxiliary/util/u_gen_mipmap.c index 0348629ab82..2e8417ee134 100644 --- a/src/gallium/auxiliary/util/u_gen_mipmap.c +++ b/src/gallium/auxiliary/util/u_gen_mipmap.c @@ -505,6 +505,9 @@ format_to_type_comps(enum pipe_format pformat, return; default: assert(0); + *datatype = UBYTE; + *comps = 0; + break; } } |