diff options
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_mipmap_tree.c | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_tex.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_tex_image.c | 1 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c index c5ef38b7596..9eb81deb78a 100644 --- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c @@ -436,8 +436,8 @@ intel_miptree_copy_teximage(struct intel_context *intel, } } - if (!src_mt) { - _mesa_free_texmemory(intelImage->base.Data); + if (!src_mt && intelImage->base.Data) { + _mesa_align_free(intelImage->base.Data); intelImage->base.Data = NULL; } diff --git a/src/mesa/drivers/dri/intel/intel_tex.c b/src/mesa/drivers/dri/intel/intel_tex.c index c11753b3deb..0e82e136e5a 100644 --- a/src/mesa/drivers/dri/intel/intel_tex.c +++ b/src/mesa/drivers/dri/intel/intel_tex.c @@ -135,7 +135,7 @@ intel_free_texture_image_buffer(struct gl_context * ctx, intel_miptree_release(&intelImage->mt); if (intelImage->base.Data) { - _mesa_free_texmemory(intelImage->base.Data); + _mesa_align_free(intelImage->base.Data); intelImage->base.Data = NULL; } diff --git a/src/mesa/drivers/dri/intel/intel_tex_image.c b/src/mesa/drivers/dri/intel/intel_tex_image.c index cf54a1391c1..2625e17a656 100644 --- a/src/mesa/drivers/dri/intel/intel_tex_image.c +++ b/src/mesa/drivers/dri/intel/intel_tex_image.c @@ -14,6 +14,7 @@ #include "main/texgetimage.h" #include "main/texobj.h" #include "main/teximage.h" +#include "main/texstore.h" #include "intel_context.h" #include "intel_mipmap_tree.h" |