Mesa (7.9): intel: Check for unsupported texture when finishing using as a render target

Eric Anholt anholt at kemper.freedesktop.org
Sat Feb 5 00:19:26 UTC 2011


Module: Mesa
Branch: 7.9
Commit: bf3932aad6502a3da48825cd5a9f7daa417f083e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bf3932aad6502a3da48825cd5a9f7daa417f083e

Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Tue Dec 21 11:55:11 2010 +0000

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 at chris-wilson.co.uk>
(cherry picked from commit 8b9570e685f010745e2dfb1bff00d555e2e5f6ba)

---

 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 1761385..41d60e6 100644
--- a/src/mesa/drivers/dri/intel/intel_fbo.c
+++ b/src/mesa/drivers/dri/intel/intel_fbo.c
@@ -614,7 +614,8 @@ intel_finish_render_texture(GLcontext * ctx,
    struct intel_texture_image *intel_image = intel_texture_image(image);
 
    /* 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




More information about the mesa-commit mailing list