From f72c1c4547e5fab769c22652d9872192029ad7fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Wed, 2 Sep 2020 00:27:41 +0200 Subject: GPUTexture: Remove bind to edit calls This is going to be unecessary after the GPU opengl texture backend refactor. For now add a save/restore mechanism to leave the state untouched. Also remove some calls where the caller would bind to particular binding point and set the shader uniform. --- source/blender/draw/intern/draw_cache_impl_volume.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'source/blender/draw/intern/draw_cache_impl_volume.c') diff --git a/source/blender/draw/intern/draw_cache_impl_volume.c b/source/blender/draw/intern/draw_cache_impl_volume.c index 825fec83cf1..a74e557cc29 100644 --- a/source/blender/draw/intern/draw_cache_impl_volume.c +++ b/source/blender/draw/intern/draw_cache_impl_volume.c @@ -265,10 +265,8 @@ static DRWVolumeGrid *volume_grid_cache_get(Volume *volume, voxels, NULL); - GPU_texture_bind(cache_grid->texture, 0); 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); MEM_freeN(voxels); -- cgit v1.2.3