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

@@ -560,6 +560,11 @@ namespace hex {
s_glRenderer = renderer;
}
static SemanticVersion s_openGLVersion;
void setGLVersion(SemanticVersion version) {
s_openGLVersion = version;
}
static AutoReset<std::map<std::string, std::string>> s_initArguments;
void addInitArgument(const std::string &key, const std::string &value) {
static std::mutex initArgumentsMutex;
@@ -755,6 +760,10 @@ namespace hex {
return impl::s_glRenderer;
}
const SemanticVersion& getGLVersion() {
return impl::s_openGLVersion;
}
bool isCorporateEnvironment() {
#if defined(OS_WINDOWS)
{