Skip to content

Commit d1b2445

Browse files
committed
small change in driverID opengl deduction
1 parent fddcc6b commit d1b2445

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/nbl/video/IOpenGL_PhysicalDeviceBase.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,14 @@ class IOpenGL_PhysicalDeviceBase : public IOpenGLPhysicalDeviceBase
287287
m_properties.driverID = E_DRIVER_ID::EDI_AMD_OPEN_SOURCE;
288288
}
289289
else if(hasInString(vendor, "intel", true) || hasInString(renderer, "intel", true))
290+
{
291+
#if defined(_NBL_PLATFORM_WINDOWS_)
290292
m_properties.driverID = E_DRIVER_ID::EDI_INTEL_PROPRIETARY_WINDOWS;
293+
#else
294+
m_properties.driverID = E_DRIVER_ID::EDI_INTEL_OPEN_SOURCE_MESA;
295+
_NBL_DEBUG_BREAK_IF(true); // Should've captured it in the previous if, need to update logic
296+
#endif
297+
}
291298
else if(hasInString(vendor, "ati technologies", true) || hasInString(vendor, "amd", true) || hasInString(renderer, "amd", true))
292299
m_properties.driverID = E_DRIVER_ID::EDI_AMD_PROPRIETARY;
293300
else if(hasInString(vendor, "nvidia", true)) // easiest to detect :D

0 commit comments

Comments
 (0)