diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-08-01 21:32:20 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-08-02 22:53:17 +0300 |
commit | 710609a2e0d7ef63711940f746392b30dd8bbc7b (patch) | |
tree | ceecb035abbd9bb29f7ed77d9e62a46fb2f9346b /source/blender | |
parent | 22143b351f9bfe39acda9f5c3287405e6a6851de (diff) |
DRW: GPU Wrapper: Fix invalid cached texture view when ensure() reallocs
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/intern/DRW_gpu_wrapper.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/DRW_gpu_wrapper.hh b/source/blender/draw/intern/DRW_gpu_wrapper.hh index 368b9e5ff56..ed00d24ce2a 100644 --- a/source/blender/draw/intern/DRW_gpu_wrapper.hh +++ b/source/blender/draw/intern/DRW_gpu_wrapper.hh @@ -734,7 +734,7 @@ class Texture : NonCopyable { int3 size = this->size(); if (size != int3(w, h, d) || GPU_texture_format(tx_) != format || GPU_texture_cube(tx_) != cubemap || GPU_texture_array(tx_) != layered) { - GPU_TEXTURE_FREE_SAFE(tx_); + free(); } } if (tx_ == nullptr) { |