diff options
author | volzhs <volzhs@gmail.com> | 2018-01-09 16:44:56 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2018-01-09 16:44:56 +0900 |
commit | 1c806abdaade09c49847f4f5702bcacfbff4ff97 (patch) | |
tree | 0361dc565d1e8b73f51fca4e8c6d344aca550aef | |
parent | 4b414f45c47d699da4442ac2347c3b1684616cc0 (diff) |
Fix shader compile error on Android
**ERROR**: EffectBlurShaderGLES3: Fragment Program Compilation Failed:
23:191: S0001: Type mismatch, cannot convert from 'int' to 'float'
At: drivers/gles3/shader_gles3.cpp:168:_display_error_with_code() - EffectBlurShaderGLES3: Fragment Program Compilation Failed:
-rw-r--r-- | drivers/gles3/shaders/effect_blur.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/shaders/effect_blur.glsl b/drivers/gles3/shaders/effect_blur.glsl index b5f98a1244..c8567b4d53 100644 --- a/drivers/gles3/shaders/effect_blur.glsl +++ b/drivers/gles3/shaders/effect_blur.glsl @@ -214,7 +214,7 @@ void main() { vec4 color_accum = vec4(0.0); - float max_accum=0; + float max_accum=0.0; for(int i=0;i<dof_kernel_size;i++) { |