mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
impr: Allow ImHex to be used without subpixel rendering on Windows if only OpenGL 3 is available
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user