diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/gpu/intern/gpu_texture.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_texture.cc b/source/blender/gpu/intern/gpu_texture.cc index 285ef87585f..1aebf2ff112 100644 --- a/source/blender/gpu/intern/gpu_texture.cc +++ b/source/blender/gpu/intern/gpu_texture.cc @@ -144,7 +144,7 @@ bool Texture::init_view(const GPUTexture *src_, d_ = src->d_; layer_start = min_ii(layer_start, src->layer_count() - 1); layer_len = min_ii(layer_len, (src->layer_count() - layer_start)); - switch (type_) { + switch (src->type_) { case GPU_TEXTURE_1D_ARRAY: h_ = layer_len; break; |