summaryrefslogtreecommitdiff
path: root/drivers/gles3
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2018-01-09 16:44:56 +0900
committervolzhs <volzhs@gmail.com>2018-01-09 16:44:56 +0900
commit1c806abdaade09c49847f4f5702bcacfbff4ff97 (patch)
tree0361dc565d1e8b73f51fca4e8c6d344aca550aef /drivers/gles3
parent4b414f45c47d699da4442ac2347c3b1684616cc0 (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:
Diffstat (limited to 'drivers/gles3')
-rw-r--r--drivers/gles3/shaders/effect_blur.glsl2
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++) {