|
|
|
@ -134,7 +134,7 @@ auto Context::detectedDriver() -> DetectedDrivers { |
|
|
|
const std::string version = versionString(); |
|
|
|
const std::string version = versionString(); |
|
|
|
|
|
|
|
|
|
|
|
/* Apple has its own drivers */ |
|
|
|
/* Apple has its own drivers */ |
|
|
|
#ifndef CORRADE_TARGET_APPLE |
|
|
|
#if !defined(CORRADE_TARGET_APPLE) && !defined(MAGNUM_TARGET_WEBGL) |
|
|
|
/* AMD binary desktop drivers */ |
|
|
|
/* AMD binary desktop drivers */ |
|
|
|
if(vendor.find("ATI Technologies Inc.") != std::string::npos) |
|
|
|
if(vendor.find("ATI Technologies Inc.") != std::string::npos) |
|
|
|
return *_detectedDrivers |= DetectedDriver::AMD; |
|
|
|
return *_detectedDrivers |= DetectedDriver::AMD; |
|
|
|
@ -151,11 +151,9 @@ auto Context::detectedDriver() -> DetectedDrivers { |
|
|
|
return *_detectedDrivers |= DetectedDriver::Mesa; |
|
|
|
return *_detectedDrivers |= DetectedDriver::Mesa; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifndef MAGNUM_TARGET_WEBGL |
|
|
|
|
|
|
|
if(vendor.find("NVIDIA Corporation") != std::string::npos) |
|
|
|
if(vendor.find("NVIDIA Corporation") != std::string::npos) |
|
|
|
return *_detectedDrivers |= DetectedDriver::NVidia; |
|
|
|
return *_detectedDrivers |= DetectedDriver::NVidia; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @todo there is also D3D9/D3D11 distinction on webglreport.com, is it useful? */ |
|
|
|
/** @todo there is also D3D9/D3D11 distinction on webglreport.com, is it useful? */ |
|
|
|
#ifdef MAGNUM_TARGET_GLES |
|
|
|
#ifdef MAGNUM_TARGET_GLES |
|
|
|
|