From 7f1062584ec1932ff8bdf661da3965fc068e0462 Mon Sep 17 00:00:00 2001 From: Michal Krol Date: Tue, 17 Mar 2009 11:34:42 +0100 Subject: [PATCH] python: Return on unknown pixel format. --- src/gallium/state_trackers/python/st_sample.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/python/st_sample.c b/src/gallium/state_trackers/python/st_sample.c index 092b7f39247..c2ffe9fce1d 100644 --- a/src/gallium/state_trackers/python/st_sample.c +++ b/src/gallium/state_trackers/python/st_sample.c @@ -451,6 +451,7 @@ st_sample_dxt_pixel_block(enum pipe_format format, break; default: assert(0); + return; } i = st_random() % n; -- 2.30.2