We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42c78fa commit d8d2edeCopy full SHA for d8d2ede
1 file changed
src/main/cpp/gl/getter.cpp
@@ -155,7 +155,7 @@ std::string getGpuName() {
155
}
156
157
// MetalANGLE, ANGLE (Metal Renderer: Apple * GPU)
158
- if (gpuName.find("Metal Renderer") != std::string::npos) {
+ if (gpuName.find("MetalANGLE, ANGLE") != std::string::npos) {
159
if (gpuName.length() < 25) {
160
return gpuName;
161
@@ -166,7 +166,7 @@ std::string getGpuName() {
166
167
168
// Vulkan ANGLE
169
- if (gpuName.rfind("ANGLE", 0) == 0) {
+ if (gpuName.rfind("ANGLE", 0) == 0 && gpuName.find("Vulkan") != std::string::npos) {
170
size_t firstParen = gpuName.find('(');
171
size_t secondParen = gpuName.find('(', firstParen + 1);
172
size_t lastParen = gpuName.rfind('(');
0 commit comments