Cleanup: GPU: Fix warning
This commit is contained in:
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
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue