mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 17:50:11 +01:00
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 8b9570e685)
This commit is contained in:
parent
2b1150170a
commit
bf3932aad6
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue