st/mesa: fix crash with blit-based GetTexImage

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

Tested-by: Andreas Boll <andreas.boll.dev@gmail.com>
This commit is contained in:
Marek Olšák 2013-03-22 00:31:47 +01:00
parent d1b91e309b
commit 17003b44b7

View file

@ -868,7 +868,7 @@ st_GetTexImage(struct gl_context * ctx,
goto fallback;
}
if (!stImage->pt) {
if (!stImage->pt || !src) {
goto fallback;
}