From 7526b12338305a5ed5ea5e1fc7e79d483dc33c22 Mon Sep 17 00:00:00 2001 From: orbea Date: Tue, 20 Mar 2018 17:37:51 -0700 Subject: [PATCH] Fix apitrace shader compiler warning. 2418: message: major shader compiler issue 2: 0:3(311): warning: `atime' used uninitialized 2418 @0 glCompileShader(shader = 27) 2418: warning: 0:3(311): warning: `atime' used uninitialized --- gfx/drivers/gl_shaders/pipeline_snowflake.glsl.frag.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/drivers/gl_shaders/pipeline_snowflake.glsl.frag.h b/gfx/drivers/gl_shaders/pipeline_snowflake.glsl.frag.h index c6ad48e071..64ed81a0f7 100644 --- a/gfx/drivers/gl_shaders/pipeline_snowflake.glsl.frag.h +++ b/gfx/drivers/gl_shaders/pipeline_snowflake.glsl.frag.h @@ -24,7 +24,7 @@ static const char* stock_fragment_xmb_snowflake = GLSL( float snow(vec3 pos, vec2 uv, float o) { vec2 d = (pos.xy - uv); - float a = atan(d.y,d.x) + sin(atime*1.0 + o) * 10.0; + float a = atan(d.y,d.x) + sin(time*1.0 + o) * 10.0; float dist = d.x*d.x + d.y*d.y; @@ -73,4 +73,4 @@ static const char* stock_fragment_xmb_snowflake = GLSL( gl_FragColor = vec4(col(p)); } -); \ No newline at end of file +);