| 745 | } |
| 746 | |
| 747 | std::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. |
no test coverage detected