From 79bd7f22ccb98ddd9383c31154c2f697115e1088 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Tue, 5 Dec 2017 21:01:12 -0800 Subject: Fixed tolower()-related warnings --- Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngineOpenGL') 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 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 ) -- cgit v1.2.3