[Feat] (GL_State/RenderState): implement ClearStencil

This commit is contained in:
2026-02-17 08:17:26 +08:00
parent 781bda2573
commit f8f3d6e657
6 changed files with 30 additions and 6 deletions
+2 -2
View File
@@ -721,7 +721,7 @@ namespace MobileGL {
*params = 0; // TODO
break;
case GL_STENCIL_CLEAR_VALUE:
*params = 0; // TODO
*params = MG_State::pGLContext->GetClearStencil();
break;
case GL_STENCIL_FAIL:
*params = 0; // TODO
@@ -922,4 +922,4 @@ namespace MobileGL {
return MG_Util::ConvertErrorCodeToGLEnum(errorCode);
}
} // namespace MG_Impl::GLImpl
} // namespace MobileGL
} // namespace MobileGL
@@ -261,7 +261,7 @@ namespace MobileGL {
}
void ClearStencil_State(GLint s) {
// TODO: implement
MG_State::pGLContext->SetClearStencil(static_cast<Int>(s));
}
void ClearDepth_State(GLclampd depth) {