python: Return on unknown pixel format.
authorMichal Krol <michal@vmware.com>
Tue, 17 Mar 2009 10:34:42 +0000 (11:34 +0100)
committerMichal Krol <michal@vmware.com>
Tue, 17 Mar 2009 10:34:42 +0000 (11:34 +0100)
src/gallium/state_trackers/python/st_sample.c

index 092b7f3924703206ebf093d2ac4767495cc12d7c..c2ffe9fce1d513bf689f9f33d9714c5390ec3afa 100644 (file)
@@ -451,6 +451,7 @@ st_sample_dxt_pixel_block(enum pipe_format format,
       break;
    default:
       assert(0);
+      return;
    }
    
    i = st_random() % n;