From f1aad43a3c4f5f4df752cda3bcd9a2f54b547079 Mon Sep 17 00:00:00 2001 From: BZLZHH Date: Thu, 1 May 2025 19:02:42 +0800 Subject: [PATCH] [Fix] (GL_Getter.cpp): Fix versionStr mistake in MG_GL::GetString. --- MG/MG_GL/Implementations/GL/Getter/GL_Getter.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/MG/MG_GL/Implementations/GL/Getter/GL_Getter.cpp b/MG/MG_GL/Implementations/GL/Getter/GL_Getter.cpp index 8e091dcc..9a743df3 100644 --- a/MG/MG_GL/Implementations/GL/Getter/GL_Getter.cpp +++ b/MG/MG_GL/Implementations/GL/Getter/GL_Getter.cpp @@ -19,14 +19,14 @@ namespace MG_GL::GL { case GL_VERSION: { static std::string versionStr; if (versionStr.empty()) { - versionStr == std::to_string(MG_Global::GL::GLVersionMajor) + "." - + std::to_string(MG_Global::GL::GLVersionMinor) + "." - + std::to_string(MG_Global::GL::GLVersionRevision) - + " "+ MG_GL::Getter::GetMGName() + - ", MobileGL Core, " + MG_GL::Getter::GetBackendName() + " Backend"; - versionStr += std::to_string(MG_Global::MG::VersionMajor) + "." - + std::to_string(MG_Global::MG::VersionMinor) + "." - + std::to_string(MG_Global::MG::VersionRevision); + versionStr = std::to_string(MG_Global::GL::GLVersionMajor) + "." + + std::to_string(MG_Global::GL::GLVersionMinor) + "." + + std::to_string(MG_Global::GL::GLVersionRevision) + + " "+ MG_GL::Getter::GetMGName() + + ", MobileGL Core, " + MG_GL::Getter::GetBackendName() + " Backend, Version " + + std::to_string(MG_Global::MG::VersionMajor) + "." + + std::to_string(MG_Global::MG::VersionMinor) + "." + + std::to_string(MG_Global::MG::VersionRevision); if (MG_Global::MG::VersionPatch != 0) versionStr += "." + std::to_string(MG_Global::MG::VersionPatch); versionStr += MG_Global::MG::VersionSuffix;