From fc745c402c72746ebb3f17c4ab4947384c7f1c97 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Sat, 1 Nov 2025 20:41:53 +0800 Subject: [PATCH 1/3] [Feat] (GLImpl/Getter): GL_CONTEXT_PROFILE_MASK --- MobileGL/MG_Impl/GLImpl/Getter/GL_Getter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MobileGL/MG_Impl/GLImpl/Getter/GL_Getter.cpp b/MobileGL/MG_Impl/GLImpl/Getter/GL_Getter.cpp index 3fb11baa..ce217d88 100644 --- a/MobileGL/MG_Impl/GLImpl/Getter/GL_Getter.cpp +++ b/MobileGL/MG_Impl/GLImpl/Getter/GL_Getter.cpp @@ -851,6 +851,9 @@ namespace MobileGL { case GL_MAX_ELEMENT_INDEX: *params = 1024 * 1024; // TODO break; + case GL_CONTEXT_PROFILE_MASK: + *params = GL_CONTEXT_CORE_PROFILE_BIT; + break; default: MGLOG_E("glGetIntegerv: Invalid enum %s (0x%X)", MG_Util::ConvertGLEnumToString(pname).c_str(), pname); MG_State::pGLContext->RecordError( From 69a867a9a966209f7cf44a75b38a6df32dc210bb Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Sat, 1 Nov 2025 20:48:15 +0800 Subject: [PATCH 2/3] [Feat] (GLImpl/Getter): GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT --- MobileGL/MG_Impl/GLImpl/Getter/GL_Getter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MobileGL/MG_Impl/GLImpl/Getter/GL_Getter.cpp b/MobileGL/MG_Impl/GLImpl/Getter/GL_Getter.cpp index ce217d88..05c8f66a 100644 --- a/MobileGL/MG_Impl/GLImpl/Getter/GL_Getter.cpp +++ b/MobileGL/MG_Impl/GLImpl/Getter/GL_Getter.cpp @@ -779,7 +779,7 @@ namespace MobileGL { *params = 0; // TODO break; case GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT: - *params = 0; // TODO + *params = 1; // TODO break; case GL_UNIFORM_BUFFER_SIZE: *params = 0; // TODO From 4706dea9deebb506e6879adc27ecb1bf597f253e Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Sat, 1 Nov 2025 20:52:13 +0800 Subject: [PATCH 3/3] [Chore] (GLImpl/Texture): adjust some log level to avoid distraction --- MobileGL/MG_Impl/GLImpl/Texture/GL_Texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MobileGL/MG_Impl/GLImpl/Texture/GL_Texture.cpp b/MobileGL/MG_Impl/GLImpl/Texture/GL_Texture.cpp index 738cb69c..4d5fe7b2 100644 --- a/MobileGL/MG_Impl/GLImpl/Texture/GL_Texture.cpp +++ b/MobileGL/MG_Impl/GLImpl/Texture/GL_Texture.cpp @@ -99,7 +99,7 @@ namespace MobileGL { for (GLsizei y = 0; y < height; y++) { const SizeT destRowOffset = (yoffset + y) * destRowSize + xoffset * bytesPerPixel; const SizeT srcRowOffset = y * srcRowSize; - MGLOG_I("memcpy params: dst: %p, src: %p, size: %zu", destData + destRowOffset, srcData + srcRowOffset, + MGLOG_D("memcpy params: dst: %p, src: %p, size: %zu", destData + destRowOffset, srcData + srcRowOffset, srcRowSize); Memcpy(destData + destRowOffset, srcData + srcRowOffset, srcRowSize); }