MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetDriverName

Method GetDriverName

src/video/opengl.cpp:747–753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745}
746
747std::string OpenGLBackend::GetDriverName()
748{
749 auto renderer = GlGetString(GL_RENDERER);
750 auto version = GlGetString(GL_VERSION);
751 /* Skipping GL_VENDOR as it tends to be "obvious" from the renderer and version data, and just makes the string pointlessly longer */
752 return fmt::format("{}, {}", renderer.value_or("Unknown renderer"), version.value_or("Unknown version"));
753}
754
755/**
756 * Check a shader for compilation errors and log them if necessary.

Callers 2

StartMethod · 0.80
StartMethod · 0.80

Calls 2

GlGetStringFunction · 0.85
formatFunction · 0.50

Tested by

no test coverage detected