impr: Better detection of Intel GPUs with really bad driver bugs

This commit is contained in:
WerWolv
2024-06-22 22:58:45 +02:00
parent 65dfd4da0f
commit a9915579a0
4 changed files with 52 additions and 11 deletions

View File

@@ -532,6 +532,11 @@ namespace hex {
s_gpuVendor = vendor;
}
static AutoReset<std::string> s_glRenderer;
void setGLRenderer(const std::string &renderer) {
s_glRenderer = renderer;
}
static AutoReset<std::map<std::string, std::string>> s_initArguments;
void addInitArgument(const std::string &key, const std::string &value) {
static std::mutex initArgumentsMutex;
@@ -676,6 +681,10 @@ namespace hex {
return impl::s_gpuVendor;
}
const std::string &getGLRenderer() {
return impl::s_glRenderer;
}
bool isPortableVersion() {
static std::optional<bool> portable;
if (portable.has_value())