summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2017-12-06 05:01:12 +0000
committerEgor Yusov <egor.yusov@gmail.com>2017-12-06 05:01:12 +0000
commit79bd7f22ccb98ddd9383c31154c2f697115e1088 (patch)
tree9e92194d601f48325701bf19e3fd60c68ff5217e /Graphics/GraphicsEngineOpenGL
parentMinor updates to CMake files (diff)
downloadDiligentCore-79bd7f22ccb98ddd9383c31154c2f697115e1088.tar.gz
DiligentCore-79bd7f22ccb98ddd9383c31154c2f697115e1088.zip
Fixed tolower()-related warnings
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp5
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 )