Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-05-28 14:41:33 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-05-28 14:42:11 +0300
commit59b730b64320a6746c73ac1a855188c9f1d5a2ad (patch)
tree6de7959920f0ed0a282104733725125f0fee2619
parentc7a7dc743d4118d2676e3830f1f0ab2a833b913d (diff)
GPU: Fix compilation warning about uninitialized values
-rw-r--r--source/blender/gpu/intern/gpu_texture.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_texture.c b/source/blender/gpu/intern/gpu_texture.c
index 186564ad58b..7451c8bcdec 100644
--- a/source/blender/gpu/intern/gpu_texture.c
+++ b/source/blender/gpu/intern/gpu_texture.c
@@ -1671,6 +1671,7 @@ void GPU_texture_clear(GPUTexture *tex, eGPUDataFormat gpu_data_format, const vo
}
default:
BLI_assert(!"Unhandled data format");
+ r = g = b = a = 0.0f;
break;
}
glClearColor(r, g, b, a);