Module: Mesa
Branch: master
Commit: 7f1062584ec1932ff8bdf661da3965fc068e0462
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f1062584ec1932ff8bdf661da3965fc068e0462

Author: Michal Krol <[email protected]>
Date:   Tue Mar 17 11:34:42 2009 +0100

python: Return on unknown pixel format.

---

 src/gallium/state_trackers/python/st_sample.c |    1 +
 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 092b7f3..c2ffe9f 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;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to