[Feat] (Diligent, MG_Impl): clear depth in GL Clear when GL_DEPTH_BUFFER_BIT set

This commit is contained in:
BZLZHH
2026-08-18 13:38:44 +08:00
parent cedc257566
commit 98f2a55214
@@ -44,6 +44,9 @@ namespace MobileGL::MG_Backend::DiligentBackend {
const auto& color = MG_State::pGLContext->GetClearColor();
renderer->Clear(color.x(), color.y(), color.z(), color.w());
}
if ((mask & GL_DEPTH_BUFFER_BIT) != 0) {
renderer->ClearDepth(MG_State::pGLContext->GetClearDepth());
}
}
void DrawArrays(GLenum mode, GLint first, GLsizei count) {