From: Chris Wilson Date: Tue, 21 Dec 2010 11:55:11 +0000 (+0000) Subject: intel: Check for unsupported texture when finishing using as a render target X-Git-Tag: 062012170305~4979^2~259^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b9570e685f010745e2dfb1bff00d555e2e5f6ba;p=profile%2Fivi%2Fmesa.git 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 --- diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c index f6fe7b1..c3f528c 100644 --- a/src/mesa/drivers/dri/intel/intel_fbo.c +++ b/src/mesa/drivers/dri/intel/intel_fbo.c @@ -547,7 +547,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