/* The tex image shares its embedded depth and stencil renderbuffers with
* the renderbuffer wrapper. */
- if (irb->wrapped_depth != intel_image->depth_rb) {
- _mesa_reference_renderbuffer(&irb->wrapped_depth,
- intel_image->depth_rb);
- }
- if (irb->wrapped_stencil != intel_image->stencil_rb) {
- _mesa_reference_renderbuffer(&irb->wrapped_stencil,
- intel_image->stencil_rb);
- }
+ _mesa_reference_renderbuffer(&irb->wrapped_depth,
+ intel_image->depth_rb);
+ _mesa_reference_renderbuffer(&irb->wrapped_stencil,
+ intel_image->stencil_rb);
return true;
-
} else {
return intel_update_tex_wrapper_regions(intel, irb, intel_image);
}
struct intel_context *intel = intel_context(ctx);
struct intel_texture_object *intelObj = intel_texture_object(texObj);
- if (intelObj->mt)
- intel_miptree_release(intel, &intelObj->mt);
-
+ intel_miptree_release(intel, &intelObj->mt);
_mesa_delete_texture_object(ctx, texObj);
}
DBG("%s\n", __FUNCTION__);
- if (intelImage->mt) {
- intel_miptree_release(intel, &intelImage->mt);
- }
+ intel_miptree_release(intel, &intelImage->mt);
if (texImage->Data) {
_mesa_free_texmemory(texImage->Data);
texImage->Data = NULL;
}
- if (intelImage->depth_rb) {
- _mesa_reference_renderbuffer(&intelImage->depth_rb, NULL);
- }
-
- if (intelImage->stencil_rb) {
- _mesa_reference_renderbuffer(&intelImage->stencil_rb, NULL);
- }
+ _mesa_reference_renderbuffer(&intelImage->depth_rb, NULL);
+ _mesa_reference_renderbuffer(&intelImage->stencil_rb, NULL);
}
/**