[Mesa-dev] [PATCH] st/mesa: fix crash with blit-based GetTexImage

Marek Olšák maraeo at gmail.com
Fri Mar 22 04:42:59 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=62573

Tested-by: Andreas Boll <andreas.boll.dev at gmail.com>
---
 src/mesa/state_tracker/st_cb_texture.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index c922a31..5f92fb3 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -860,7 +860,7 @@ st_GetTexImage(struct gl_context * ctx,
    ubyte *map = NULL;
    boolean done = FALSE;
 
-   if (!stImage->pt) {
+   if (!stImage->pt || !src) {
       goto fallback;
    }
 
-- 
1.7.10.4



More information about the mesa-dev mailing list