From e58071355e944138e01939df57f79affca24dec7 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Mon, 17 Mar 2014 10:37:12 -0400 Subject: [PATCH] nouveau: there may not have been a texture if the fbo was incomplete Signed-off-by: Ilia Mirkin Reviewed-by: Francisco Jerez Cc: "10.0 10.1" --- src/mesa/drivers/dri/nouveau/nouveau_fbo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/nouveau/nouveau_fbo.c b/src/mesa/drivers/dri/nouveau/nouveau_fbo.c index ae50fe03677..6c479f5f0c6 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_fbo.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_fbo.c @@ -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 -- 2.30.2