summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-01-19 17:44:57 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-01-19 17:44:57 +0000
commit65b88200aae28dcd4b3e48672126bc7556d7bb49 (patch)
tree98d3cacead7e6e9824a0e5b04999d4b70543be28 /Graphics/GraphicsEngineOpenGL
parentEnabled MacOS build (diff)
downloadDiligentCore-65b88200aae28dcd4b3e48672126bc7556d7bb49.tar.gz
DiligentCore-65b88200aae28dcd4b3e48672126bc7556d7bb49.zip
Fixed some clang compiler warnings
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/include/GLProgramResources.h4
-rw-r--r--Graphics/GraphicsEngineOpenGL/src/GLContextMacOS.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/include/GLProgramResources.h b/Graphics/GraphicsEngineOpenGL/include/GLProgramResources.h
index 1442319c..d26c8ba4 100644
--- a/Graphics/GraphicsEngineOpenGL/include/GLProgramResources.h
+++ b/Graphics/GraphicsEngineOpenGL/include/GLProgramResources.h
@@ -56,8 +56,8 @@ namespace Diligent
{
GLProgramVariableBase( const Char* _Name, size_t _ArraySize, SHADER_VARIABLE_TYPE _VarType) :
Name( _Name ),
- VarType(_VarType),
- pResources(_ArraySize)
+ pResources(_ArraySize),
+ VarType(_VarType)
{
VERIFY_EXPR(_ArraySize >= 1);
}
diff --git a/Graphics/GraphicsEngineOpenGL/src/GLContextMacOS.cpp b/Graphics/GraphicsEngineOpenGL/src/GLContextMacOS.cpp
index be1a37fc..74e3d996 100644
--- a/Graphics/GraphicsEngineOpenGL/src/GLContextMacOS.cpp
+++ b/Graphics/GraphicsEngineOpenGL/src/GLContextMacOS.cpp
@@ -84,10 +84,10 @@ namespace Diligent
}*/
GLContext::GLContext( const ContextInitInfo &Info, DeviceCaps &DeviceCaps ) :
- m_SwapChainAttribs(Info.SwapChainAttribs),
- m_Context(0),
- m_pNativeWindow(Info.pNativeWndHandle),
- m_pDisplay(Info.pDisplay)
+ m_pNativeWindow(Info.pNativeWndHandle),
+ m_pDisplay(Info.pDisplay),
+ m_Context(0),
+ m_SwapChainAttribs(Info.SwapChainAttribs)
{
#if 0
auto CurrentCtx = glXGetCurrentContext();