Cleanup: GPU: Fix warning

This commit is contained in:
Clément Foucault
2020-05-28 14:04:52 +02:00
parent a9073ccb68
commit 3923062d13

View File

@@ -1637,6 +1637,7 @@ void GPU_texture_clear(GPUTexture *tex, eGPUDataFormat gpu_data_format, const vo
} }
default: default:
BLI_assert(!"Unhandled data format"); BLI_assert(!"Unhandled data format");
depth = 0.0f;
break; break;
} }
glClearDepth(depth); glClearDepth(depth);