[Feat] (...): Handle pixel store correctly.

This commit is contained in:
BZLZHH
2025-11-01 19:52:33 +08:00
parent bcb947235d
commit d652645346
11 changed files with 406 additions and 73 deletions
@@ -192,19 +192,6 @@ namespace MobileGL::MG_Backend::DirectGLES {
MG_External::GLES::glClearDepthf(MG_State::pGLContext->GetClearDepth());
}
{ // Pixel store params
{
PixelStoreParam p = PixelStoreParam::UnpackAlignment;
GLint v = MG_State::pGLContext->GetPixelStoreParam(p);
MG_External::GLES::glPixelStorei(MG_Util::ConvertPixelStoreParamToGLEnum(p), v);
}
{
PixelStoreParam p = PixelStoreParam::PackAlignment;
GLint v = MG_State::pGLContext->GetPixelStoreParam(p);
MG_External::GLES::glPixelStorei(MG_Util::ConvertPixelStoreParamToGLEnum(p), v);
}
}
{ // Cull face mode
CullFaceMode cfm = MG_State::pGLContext->GetCullFaceMode();
MG_External::GLES::glCullFace(MG_Util::ConvertCullFaceModeToGLEnum(cfm));