mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-10 21:28:32 +09:00
[Improvement] (Getter): better glGetString with GPU name
This commit is contained in:
@@ -15,7 +15,7 @@ namespace MG_GL::GL {
|
||||
MG_Util::Debug::LogD("glGetString, name: %s", MG_Util::Debug::GLEnumToString(name));
|
||||
switch (name) {
|
||||
case GL_VENDOR:
|
||||
return (const GLubyte *)"MobileGL-Dev";
|
||||
return (const GLubyte *)"MobileGL-Dev (BZLZHH, Swung0x48, Tungsten)";
|
||||
case GL_VERSION: {
|
||||
static std::string versionStr;
|
||||
if (versionStr.empty()) {
|
||||
@@ -44,7 +44,11 @@ namespace MG_GL::GL {
|
||||
}
|
||||
return (const GLubyte *)rendererString.c_str();
|
||||
*/
|
||||
return (const GLubyte *)(MG_GL::Getter::GetMGName() + " (MobileGL Core) Renderer").c_str();
|
||||
return (const GLubyte *)std::format("{} | {} {}.{}",
|
||||
MG_GL::Getter::GetGPUName(),
|
||||
MG_GL::Getter::GetBackendGfxAPIName(),
|
||||
MG_GL::Getter::GetBackendGfxAPIVersionMajor(),
|
||||
MG_GL::Getter::GetBackendGfxAPIVersionMinor()).c_str();
|
||||
}
|
||||
case GL_SHADING_LANGUAGE_VERSION:
|
||||
return (const GLubyte *) "4.50 MobileGL with glslang";
|
||||
|
||||
Reference in New Issue
Block a user