From 17003b44b76f2442a8bd795c8a314146facef3e5 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 22 Mar 2013 00:31:47 +0100 Subject: st/mesa: fix crash with blit-based GetTexImage https://bugs.freedesktop.org/show_bug.cgi?id=62573 Tested-by: Andreas Boll --- 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 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; } -- cgit v1.2.3