summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/nouveau
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2014-03-17 10:37:12 -0400
committerIlia Mirkin <[email protected]>2014-03-19 18:20:29 -0400
commite58071355e944138e01939df57f79affca24dec7 (patch)
treee038d56f4d1c58910505b97110a2325e52aa346c /src/mesa/drivers/dri/nouveau
parentb676df9abf46bca84ab2f7c36dd5a556a1524966 (diff)
nouveau: there may not have been a texture if the fbo was incomplete
Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Francisco Jerez <[email protected]> Cc: "10.0 10.1" <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/nouveau')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_fbo.c3
1 files changed, 2 insertions, 1 deletions
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