GPUTexture: Remove Warning.

This commit is contained in:
Clément Foucault 2017-08-22 14:41:19 +02:00
parent d7b3e33af4
commit 831e86d539

@ -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);