mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
MetaBackgroundActor: glsl: do not mix int and float.
Implicit conversion from int to float is not supported by GLSL ES. Fixes: (gnome-shell:8954): Cogl-WARNING **: Shader compilation failed: 1:2: P0004: High precision not supported, instead compiling high precision as medium precision 4:17: S0001: Type mismatch in arithmetic operation between 'int' and 'float' when one trigger the overview mode on Mali 400 r1p1 GPU. https://bugzilla.gnome.org/show_bug.cgi?id=745442
This commit is contained in:
parent
7a57e59fcc
commit
8dd7102909
@ -115,7 +115,7 @@ typedef enum {
|
||||
#define FRAGMENT_SHADER_CODE \
|
||||
"float t = 2.0 * length(position);\n" \
|
||||
"t = min(t, 1.0);\n" \
|
||||
"float pixel_brightness = 1 - t * vignette_sharpness;\n" \
|
||||
"float pixel_brightness = 1.0 - t * vignette_sharpness;\n" \
|
||||
"cogl_color_out.rgb = cogl_color_out.rgb * pixel_brightness;\n" \
|
||||
|
||||
typedef struct _MetaBackgroundLayer MetaBackgroundLayer;
|
||||
|
Loading…
Reference in New Issue
Block a user