Mesa (master): python: Return on unknown pixel format.

Michał Król michal at kemper.freedesktop.org
Tue Mar 17 10:35:06 UTC 2009


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

Author: Michal Krol <michal at vmware.com>
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;




More information about the mesa-commit mailing list