From: Marek Olšák Date: Thu, 21 Mar 2013 23:31:47 +0000 (+0100) Subject: st/mesa: fix crash with blit-based GetTexImage X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=17003b44b76f2442a8bd795c8a314146facef3e5;p=mesa.git st/mesa: fix crash with blit-based GetTexImage https://bugs.freedesktop.org/show_bug.cgi?id=62573 Tested-by: Andreas Boll --- diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 94fbbf7bed8..0cd0d77af22 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -868,7 +868,7 @@ st_GetTexImage(struct gl_context * ctx, goto fallback; } - if (!stImage->pt) { + if (!stImage->pt || !src) { goto fallback; }