From ab653ba73fe1834bc0aeca9d11821cb492a2228f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 22 Mar 2013 00:31:47 +0100 Subject: [PATCH] st/mesa: fix crash with blit-based GetTexImage https://bugs.freedesktop.org/show_bug.cgi?id=62573 --- 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