diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index ba9dcd37d37..5127d9634c0 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -512,6 +512,7 @@ driver_RenderTexture_is_safe(const struct gl_renderbuffer_attachment *att) att->Texture->Image[att->CubeMapFace][att->TextureLevel]; if (!texImage || + !texImage->pt || texImage->Width == 0 || texImage->Height == 0 || texImage->Depth == 0) return false;