gallium: do something sensible on the error path to try to avoid crashing in release...
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 1 May 2008 13:19:25 +0000 (14:19 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 1 May 2008 14:37:30 +0000 (15:37 +0100)
src/gallium/auxiliary/util/u_gen_mipmap.c

index 0348629ab82689944ecb799a4db46219dee5a47e..2e8417ee134a5c33dec0a2c01fc1c74e90ba58dd 100644 (file)
@@ -505,6 +505,9 @@ format_to_type_comps(enum pipe_format pformat,
       return;
    default:
       assert(0);
+      *datatype = UBYTE;
+      *comps = 0;
+      break;
    }
 }