diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2017-12-06 05:01:12 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2017-12-06 05:01:12 +0000 |
| commit | 79bd7f22ccb98ddd9383c31154c2f697115e1088 (patch) | |
| tree | 9e92194d601f48325701bf19e3fd60c68ff5217e /Graphics/GraphicsEngineOpenGL | |
| parent | Minor updates to CMake files (diff) | |
| download | DiligentCore-79bd7f22ccb98ddd9383c31154c2f697115e1088.tar.gz DiligentCore-79bd7f22ccb98ddd9383c31154c2f697115e1088.zip | |
Fixed tolower()-related warnings
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp index 40d2074a..59d193c1 100644 --- a/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp @@ -41,6 +41,7 @@ #include "PipelineStateGLImpl.h" #include "ShaderResourceBindingGLImpl.h" #include "EngineMemory.h" +#include "StringTools.h" namespace Diligent { @@ -66,8 +67,8 @@ RenderDeviceGLImpl :: RenderDeviceGLImpl(IReferenceCounters *pRefCounters, IMemo QueryDeviceCaps(); std::basic_string<GLubyte> glstrVendor = glGetString( GL_VENDOR ); - std::string Vendor(glstrVendor.begin(), glstrVendor.end()); - transform(Vendor.begin(), Vendor.end(), Vendor.begin(), ::tolower); + std::string Vendor = StrToLower(std::string(glstrVendor.begin(), glstrVendor.end())); + if( Vendor.find( "intel" ) != std::string::npos ) m_GPUInfo.Vendor = GPU_VENDOR::INTEL; else if( Vendor.find( "nvidia" ) != std::string::npos ) |
