summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorEgor <egor.yusov@gmail.com>2018-02-19 00:03:20 +0000
committerEgor <egor.yusov@gmail.com>2018-02-19 00:03:20 +0000
commit0fdedcc5156a7b257ddb1500b249b73242ed3dae (patch)
tree29068ff131c5924fd510ce3b8d031bb1a5119a1a /Graphics/GraphicsEngineOpenGL
parentHLSL2GLSL converter: reworked outer tessellation level handling to avoid usin... (diff)
downloadDiligentCore-0fdedcc5156a7b257ddb1500b249b73242ed3dae.tar.gz
DiligentCore-0fdedcc5156a7b257ddb1500b249b73242ed3dae.zip
Added Qualcomm GPU vendor
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/include/RenderDeviceGLImpl.h8
-rw-r--r--Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp3
2 files changed, 6 insertions, 5 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/include/RenderDeviceGLImpl.h b/Graphics/GraphicsEngineOpenGL/include/RenderDeviceGLImpl.h
index 1caa3b89..c80ef1a4 100644
--- a/Graphics/GraphicsEngineOpenGL/include/RenderDeviceGLImpl.h
+++ b/Graphics/GraphicsEngineOpenGL/include/RenderDeviceGLImpl.h
@@ -36,15 +36,13 @@ enum class GPU_VENDOR
UNKNOWN,
INTEL,
ATI,
- NVIDIA
+ NVIDIA,
+ QUALCOMM
};
struct GPUInfo
{
- GPU_VENDOR Vendor;
- GPUInfo() :
- Vendor( GPU_VENDOR::UNKNOWN )
- {}
+ GPU_VENDOR Vendor = GPU_VENDOR::UNKNOWN;
};
namespace Diligent
diff --git a/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp
index 4676bb4a..51dd552f 100644
--- a/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp
+++ b/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp
@@ -68,6 +68,7 @@ RenderDeviceGLImpl :: RenderDeviceGLImpl(IReferenceCounters *pRefCounters, IMemo
std::basic_string<GLubyte> glstrVendor = glGetString( GL_VENDOR );
std::string Vendor = StrToLower(std::string(glstrVendor.begin(), glstrVendor.end()));
+ LOG_INFO_MESSAGE("GPU Vendor: ", Vendor);
if( Vendor.find( "intel" ) != std::string::npos )
m_GPUInfo.Vendor = GPU_VENDOR::INTEL;
@@ -76,6 +77,8 @@ RenderDeviceGLImpl :: RenderDeviceGLImpl(IReferenceCounters *pRefCounters, IMemo
else if( Vendor.find( "ati" ) != std::string::npos ||
Vendor.find( "amd" ) != std::string::npos )
m_GPUInfo.Vendor = GPU_VENDOR::ATI;
+ else if( Vendor.find( "qualcomm" ) )
+ m_GPUInfo.Vendor = GPU_VENDOR::QUALCOMM;
}
RenderDeviceGLImpl :: ~RenderDeviceGLImpl()