Cleanup: GPU: Fix warning

This commit is contained in:
Clément Foucault 2020-05-28 14:04:52 +02:00
parent a9073ccb68
commit 3923062d13
Notes: blender-bot 2023-02-14 10:21:15 +01:00
Referenced by issue #77752, AMD Pro Driver crashes on ASAN build when switching to edit mode
1 changed files with 1 additions and 0 deletions

View File

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