1
1

DRW: GPU Wrapper: Fix invalid cached texture view when ensure() reallocs

This commit is contained in:
2022-08-01 20:32:20 +02:00
parent 22143b351f
commit 710609a2e0

View File

@@ -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) {