From 65b88200aae28dcd4b3e48672126bc7556d7bb49 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 19 Jan 2018 09:44:57 -0800 Subject: Fixed some clang compiler warnings --- Graphics/GraphicsEngineOpenGL/include/GLProgramResources.h | 4 ++-- Graphics/GraphicsEngineOpenGL/src/GLContextMacOS.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'Graphics/GraphicsEngineOpenGL') 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(); -- cgit v1.2.3