Skip to content

Commit

Permalink
Fixed error made in the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Oct 9, 2020
1 parent 1f4b23b commit ae0a9db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Layers/xrRender/ShaderResourceTraits.h
Expand Up @@ -636,13 +636,13 @@ T* CResourceManager::CreateShader(cpcstr name, pcstr filename /*= nullptr*/,
# ifdef NDEBUG
flags |= D3DCOMPILE_PACK_MATRIX_ROW_MAJOR | D3DCOMPILE_OPTIMIZATION_LEVEL3;
# else
flags |= D3DCOMPILE_PACK_MATRIX_ROW_MAJOR | xrDebug::DebuggerIsPresent() ? D3DCOMPILE_DEBUG : 0;
flags |= D3DCOMPILE_PACK_MATRIX_ROW_MAJOR | (xrDebug::DebuggerIsPresent() ? D3DCOMPILE_DEBUG : 0);
# endif
#elif defined(USE_DX9)
# ifdef NDEBUG
flags |= D3DXSHADER_PACKMATRIX_ROWMAJOR | D3DXSHADER_OPTIMIZATION_LEVEL3;
# else
flags |= D3DXSHADER_PACKMATRIX_ROWMAJOR | xrDebug::DebuggerIsPresent() ? D3DXSHADER_DEBUG : 0;
flags |= D3DXSHADER_PACKMATRIX_ROWMAJOR | (xrDebug::DebuggerIsPresent() ? D3DXSHADER_DEBUG : 0);
# endif
#endif

Expand Down

0 comments on commit ae0a9db

Please sign in to comment.