We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 577f716 commit 172a4a9Copy full SHA for 172a4a9
1 file changed
Plugins/NativeEngine/Source/ShaderProvider.cpp
@@ -9,17 +9,17 @@
9
10
#include <bgfx/bgfx.h>
11
12
-#ifdef OPENGL
13
-constexpr bool IsOpenGL = true;
14
-#else
15
-constexpr bool IsOpenGL = false;
16
-#endif
17
-
18
namespace
19
{
20
#ifdef SHADER_COMPILER
21
void CheckShaderCompilerAssumptions()
22
+#ifdef OPENGL
+ constexpr bool IsOpenGL = true;
+#else
+ constexpr bool IsOpenGL = false;
+#endif
+
23
const auto* caps = bgfx::getCaps();
24
if (caps->homogeneousDepth != IsOpenGL || caps->originBottomLeft != IsOpenGL)
25
0 commit comments