From 229b5f292e1e6ff65206662d4dbef9d96f326f5b Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Thu, 26 Jun 2025 16:03:34 +0800 Subject: [PATCH] [Fix] (MG_State/Texture): revert GetUnpackParam_ to private --- MG/MG_GL/State/Texture/TextureState.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MG/MG_GL/State/Texture/TextureState.h b/MG/MG_GL/State/Texture/TextureState.h index fa3392cf..0235f43e 100644 --- a/MG/MG_GL/State/Texture/TextureState.h +++ b/MG/MG_GL/State/Texture/TextureState.h @@ -62,8 +62,8 @@ private: std::vector freeID_; MG_Global::unordered_map proxyTextures_; - static GLint GetUnpackParam_(GLenum pname); + public: TextureState(); @@ -71,6 +71,7 @@ public: bool IsTexture(GLuint texture); MG_Global::unordered_map textures; + // Return: the validity of the operation, according to OpenGL 3 standard GLenum BindUnit(GLenum textureUnit); GLenum Create(GLuint* texture);