nouveau: there may not have been a texture if the fbo was incomplete

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Cc: "10.0 10.1" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit e58071355e)
This commit is contained in:
Ilia Mirkin 2014-03-17 10:37:12 -04:00 committed by Carl Worth
parent ee71a08f23
commit 87587c6683

View file

@ -265,7 +265,8 @@ static void
nouveau_finish_render_texture(struct gl_context *ctx,
struct gl_renderbuffer *rb)
{
texture_dirty(rb->TexImage->TexObject);
if (rb && rb->TexImage)
texture_dirty(rb->TexImage->TexObject);
}
static int