impr: Allow ImHex to be used without subpixel rendering on Windows if only OpenGL 3 is available

This commit is contained in:
WerWolv
2025-08-09 19:13:45 +02:00
parent e6f46747b6
commit d925c8216d
7 changed files with 62 additions and 14 deletions

View File

@@ -71,6 +71,13 @@ namespace hex::init {
ImHexApi::System::impl::setGPUVendor(glVendor);
ImHexApi::System::impl::setGLRenderer(glRenderer);
{
int glVersionMajor = 0, glVersionMinor = 0;
glGetIntegerv(GL_MAJOR_VERSION, &glVersionMajor);
glGetIntegerv(GL_MINOR_VERSION, &glVersionMinor);
ImHexApi::System::impl::setGLVersion(SemanticVersion(glVersionMajor, glVersionMinor, 0));
}
}
}