]> git.lizzy.rs Git - minetest.git/commitdiff
Remove shader caching hack. (#12991)
authorlhofhansl <larsh@apache.org>
Wed, 30 Nov 2022 21:56:14 +0000 (13:56 -0800)
committerGitHub <noreply@github.com>
Wed, 30 Nov 2022 21:56:14 +0000 (13:56 -0800)
src/client/shader.cpp

index fec58a0c97c079ce8027e911878732d2be4d6d1f..da3da8ab1d17a65969129be68c8ad7ec5b6d2a80 100644 (file)
@@ -214,13 +214,13 @@ class MainShaderConstantSetter : public IShaderConstantSetter
        CachedVertexShaderSetting<f32, 16> m_world;
 
        // Shadow-related
-       CachedPixelShaderSetting<f32, 16, false> m_shadow_view_proj;
+       CachedPixelShaderSetting<f32, 16> m_shadow_view_proj;
        CachedPixelShaderSetting<f32, 3> m_light_direction;
        CachedPixelShaderSetting<f32> m_texture_res;
        CachedPixelShaderSetting<f32> m_shadow_strength;
        CachedPixelShaderSetting<f32> m_time_of_day;
        CachedPixelShaderSetting<f32> m_shadowfar;
-       CachedPixelShaderSetting<f32, 4, false> m_camera_pos;
+       CachedPixelShaderSetting<f32, 4> m_camera_pos;
        CachedPixelShaderSetting<s32> m_shadow_texture;
        CachedVertexShaderSetting<f32> m_perspective_bias0_vertex;
        CachedPixelShaderSetting<f32> m_perspective_bias0_pixel;