summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_texture.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-04-09 19:22:11 -0600
committerBrian Paul <[email protected]>2014-04-10 07:53:05 -0600
commitf9985db0bc1f1fa217a0fa30a608cb78ccd79a50 (patch)
tree0bf457ffdba3a7a09c4154d1fd0784727964f802 /src/mesa/state_tracker/st_texture.h
parent87502bbcd7311a7eecb5a9ef82b4770253a62530 (diff)
st/mesa: fix sampler_view REALLOC/FREE macro mix-up
We were using REALLOC() from u_memory.h but FREE() from imports.h. This mismatch caused us to trash the heap on Windows after we deleted a texture object. This fixes a regression from commit 6c59be7776e4d. Reviewed-by: Christian König <[email protected]> Reviewed-by: Jakob Bornecrantz <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_texture.h')
-rw-r--r--src/mesa/state_tracker/st_texture.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_texture.h b/src/mesa/state_tracker/st_texture.h
index 87de9f9f2f4..f2afaf139f1 100644
--- a/src/mesa/state_tracker/st_texture.h
+++ b/src/mesa/state_tracker/st_texture.h
@@ -241,4 +241,7 @@ st_texture_release_sampler_view(struct st_context *st,
extern void
st_texture_release_all_sampler_views(struct st_texture_object *stObj);
+void
+st_texture_free_sampler_views(struct st_texture_object *stObj);
+
#endif