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 15:04:52 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-05-28 15:04:52 +0300
commit3923062d13b23b3b55d163b46bfad65a34b7ccd5 (patch)
tree9cf3eda177cb1e4441cf2aa44e8b0d573014a03e /source/blender/gpu
parenta9073ccb6895f188e43cfc6ddb507b5c1f69fc66 (diff)
Cleanup: GPU: Fix warning
Diffstat (limited to 'source/blender/gpu')
-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 7451c8bcdec..38ba8bc612f 100644
--- a/source/blender/gpu/intern/gpu_texture.c
+++ b/source/blender/gpu/intern/gpu_texture.c
@@ -1637,6 +1637,7 @@ void GPU_texture_clear(GPUTexture *tex, eGPUDataFormat gpu_data_format, const vo
}
default:
BLI_assert(!"Unhandled data format");
+ depth = 0.0f;
break;
}
glClearDepth(depth);