diff options
author | ShadowNinja <shadowninja@minetest.net> | 2021-12-01 18:30:40 -0500 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2022-04-08 14:55:21 +0100 |
commit | 5683bb76cc3a60d952c9f58c41adaa5f195dd3f4 (patch) | |
tree | 86154779a5a23b1385a8e6872a7c3d79da51847d /src/client/shader.cpp | |
parent | 3a87fab6c899afa50b2b7615b882d0a81b922832 (diff) | |
download | minetest-5683bb76cc3a60d952c9f58c41adaa5f195dd3f4.tar.gz minetest-5683bb76cc3a60d952c9f58c41adaa5f195dd3f4.tar.bz2 minetest-5683bb76cc3a60d952c9f58c41adaa5f195dd3f4.zip |
Fix compiler warnings
Diffstat (limited to 'src/client/shader.cpp')
-rw-r--r-- | src/client/shader.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/shader.cpp b/src/client/shader.cpp index 1be9ef128..bbb872761 100644 --- a/src/client/shader.cpp +++ b/src/client/shader.cpp @@ -242,11 +242,6 @@ public: MainShaderConstantSetter() : m_world_view_proj("mWorldViewProj") , m_world("mWorld") -#if ENABLE_GLES - , m_world_view("mWorldView") - , m_texture("mTexture") - , m_normal("mNormal") -#endif , m_shadow_view_proj("m_ShadowViewProj") , m_light_direction("v_LightDirection") , m_texture_res("f_textureresolution") @@ -261,6 +256,11 @@ public: , m_perspective_bias1_pixel("xyPerspectiveBias1") , m_perspective_zbias_vertex("zPerspectiveBias") , m_perspective_zbias_pixel("zPerspectiveBias") +#if ENABLE_GLES + , m_world_view("mWorldView") + , m_texture("mTexture") + , m_normal("mNormal") +#endif {} ~MainShaderConstantSetter() = default; |