summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-03-17 11:34:42 +0100
committerMichal Krol <michal@vmware.com>2009-03-17 11:34:42 +0100
commit7f1062584ec1932ff8bdf661da3965fc068e0462 (patch)
treed69dfa37db228b8e75899a48c3c7a512fb184e83 /src
parentc337bafeb99d1fb6b4f04a61b8e4a06caff11766 (diff)
python: Return on unknown pixel format.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/python/st_sample.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/python/st_sample.c b/src/gallium/state_trackers/python/st_sample.c
index 092b7f3924..c2ffe9fce1 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;