Skip to content

Commit 172a4a9

Browse files
authored
Fix unused variable warning when building with clang (#1612)
1 parent 577f716 commit 172a4a9

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Plugins/NativeEngine/Source/ShaderProvider.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99

1010
#include <bgfx/bgfx.h>
1111

12-
#ifdef OPENGL
13-
constexpr bool IsOpenGL = true;
14-
#else
15-
constexpr bool IsOpenGL = false;
16-
#endif
17-
1812
namespace
1913
{
2014
#ifdef SHADER_COMPILER
2115
void CheckShaderCompilerAssumptions()
2216
{
17+
#ifdef OPENGL
18+
constexpr bool IsOpenGL = true;
19+
#else
20+
constexpr bool IsOpenGL = false;
21+
#endif
22+
2323
const auto* caps = bgfx::getCaps();
2424
if (caps->homogeneousDepth != IsOpenGL || caps->originBottomLeft != IsOpenGL)
2525
{

0 commit comments

Comments
 (0)