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