diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-08-22 15:41:19 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-08-22 15:41:36 +0300 |
commit | 831e86d5391e8665d2fd05c7ff58cf08b8d41a54 (patch) | |
tree | a2ace0944c709be68aeaf503e76e5bb43d9f515b /source/blender/gpu/intern | |
parent | d7b3e33af43fa5a42e87689b441e6aa08e544754 (diff) |
GPUTexture: Remove Warning.
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r-- | source/blender/gpu/intern/gpu_texture.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/gpu/intern/gpu_texture.c b/source/blender/gpu/intern/gpu_texture.c index 7d8a354074a..d7f28ad1856 100644 --- a/source/blender/gpu/intern/gpu_texture.c +++ b/source/blender/gpu/intern/gpu_texture.c @@ -716,9 +716,8 @@ void GPU_texture_update(GPUTexture *tex, const float *pixels) BLI_assert(tex->format > -1); BLI_assert(tex->components > -1); - GLenum format, internalformat, data_format; - internalformat = gpu_texture_get_format(tex->components, tex->format, - &format, &data_format, &tex->depth, &tex->stencil, &tex->bytesize); + GLenum format, data_format; + gpu_texture_get_format(tex->components, tex->format, &format, &data_format, &tex->depth, &tex->stencil, &tex->bytesize); glBindTexture(tex->target, tex->bindcode); |