diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-09-23 21:34:53 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-09-25 21:14:42 +0300 |
commit | 709315a0d7cd382320c060f369717f8af4ea364e (patch) | |
tree | 9649ffa2f1cdb114ad549e539a31e5d4aa372d93 /source/blender/gpu/intern/gpu_texture.c | |
parent | 2a7b747f18cd35827ee19517ff1c0c50e602f398 (diff) |
GPUTexture : Fix Bind/Unbind function so it works with multisample textures.
Diffstat (limited to 'source/blender/gpu/intern/gpu_texture.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_texture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_texture.c b/source/blender/gpu/intern/gpu_texture.c index d7f28ad1856..ac8c8bacac1 100644 --- a/source/blender/gpu/intern/gpu_texture.c +++ b/source/blender/gpu/intern/gpu_texture.c @@ -796,7 +796,7 @@ void GPU_texture_bind(GPUTexture *tex, int number) glActiveTexture(GL_TEXTURE0 + number); if (tex->bindcode != 0) - glBindTexture(tex->target_base, tex->bindcode); + glBindTexture(tex->target, tex->bindcode); else GPU_invalid_tex_bind(tex->target_base); @@ -819,7 +819,7 @@ void GPU_texture_unbind(GPUTexture *tex) if (tex->number != 0) glActiveTexture(GL_TEXTURE0 + tex->number); - glBindTexture(tex->target_base, 0); + glBindTexture(tex->target, 0); if (tex->number != 0) glActiveTexture(GL_TEXTURE0); |