diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-07-17 03:15:41 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-07-18 04:43:51 +0300 |
commit | 5b4a862f834eef798762660a73c6ae9881368460 (patch) | |
tree | 7c90b49c77fa26fa69e624260cae4450502f5e4b /source/blender/draw | |
parent | 2840782d8478f1c37c2aa91cc7f12c8e1f4dca0a (diff) |
GPUTexture: Add better swizzle support
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_volume.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_volume.c b/source/blender/draw/intern/draw_cache_impl_volume.c index 9c2c075ab4f..e07f5b33d58 100644 --- a/source/blender/draw/intern/draw_cache_impl_volume.c +++ b/source/blender/draw/intern/draw_cache_impl_volume.c @@ -266,7 +266,7 @@ static DRWVolumeGrid *volume_grid_cache_get(Volume *volume, NULL); GPU_texture_bind(cache_grid->texture, 0); - GPU_texture_swizzle_channel_auto(cache_grid->texture, channels); + GPU_texture_swizzle_set(cache_grid->texture, (channels == 3) ? "rgb1" : "rrr1"); GPU_texture_wrap_mode(cache_grid->texture, false, false); GPU_texture_unbind(cache_grid->texture); |