diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-12-21 11:55:11 +0000 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-12-27 14:30:42 -0800 |
commit | a8e34dd8c2f2d513fdbb6823691464622f2335d7 (patch) | |
tree | fdb560d20951ed178ff771648a745877cc6596dd /src/mesa/drivers | |
parent | 4fd0d556fc924467300fea579434a84dcac994d5 (diff) |
intel: Check for unsupported texture when finishing using as a render target
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=32541
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
(cherry picked from commit 8b9570e685f010745e2dfb1bff00d555e2e5f6ba)
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_fbo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c index 18e796a1186..dd8ebb7e6d6 100644 --- a/src/mesa/drivers/dri/intel/intel_fbo.c +++ b/src/mesa/drivers/dri/intel/intel_fbo.c @@ -659,7 +659,8 @@ intel_finish_render_texture(struct gl_context * ctx, _glthread_GetID(), att->Texture->Name); /* Flag that this image may now be validated into the object's miptree. */ - intel_image->used_as_render_target = GL_FALSE; + if (intel_image) + intel_image->used_as_render_target = GL_FALSE; /* Since we've (probably) rendered to the texture and will (likely) use * it in the texture domain later on in this batchbuffer, flush the |