[Bf-blender-cvs] [831e86d5391] blender2.8: GPUTexture: Remove Warning.

Clément Foucault noreply at git.blender.org
Tue Aug 22 14:41:40 CEST 2017


Commit: 831e86d5391e8665d2fd05c7ff58cf08b8d41a54
Author: Clément Foucault
Date:   Tue Aug 22 14:41:19 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB831e86d5391e8665d2fd05c7ff58cf08b8d41a54

GPUTexture: Remove Warning.

===================================================================

M	source/blender/gpu/intern/gpu_texture.c

===================================================================

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



More information about the Bf-blender-cvs mailing list