Merge ~smspillaz/compiz:fix-blur-frag-shader-precision-gles into compiz:master
Status: | Merged |
---|---|
Approved by: | Dmitry Shachnev |
Approved revision: | 5e83dccbbfef0e856cdbc75f6c0262dc7286520c |
Merged at revision: | ded568c3e7cdcbf6eb674877df0ea6076e5cbcd6 |
Proposed branch: | ~smspillaz/compiz:fix-blur-frag-shader-precision-gles |
Merge into: | compiz:master |
Diff against target: |
16 lines (+4/-1) 1 file modified
plugins/blur/src/blur.cpp (+4/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Compiz Maintainers | Pending | ||
Review via email:
|
Commit message
blur: Set precision level in fragment shader in GL_ES case.
Description of the change
Background blurring wasn't working on GLES platforms. Running in the terminal would get a bunch of these messages:
0:1(1): error: No precision specified in this scope for type `vec2'
0:6(2): error: No precision specified in this scope for type `vec4'
0:6(2): error: No precision specified in this scope for type `vec4'
0:7(2): error: No precision specified in this scope for type `vec4'
0:7(2): error: No precision specified in this scope for type `vec4'
0:8(2): error: No precision specified in this scope for type `vec2'
0:8(2): error: No precision specified in this scope for type `vec2'
0:9(2): error: No precision specified in this scope for type `vec2' 0:9(2): error: No precision specified in this scope for type `vec2'
0:10(2): error: No precision specified in this scope for type `vec4'
This change sets the precision to medium on the fragment shader by default, so that we don't get these errors and it works again.
Thank you! The backslashes at end of each line are probably not needed, C/C++ treats "one" "two" the same way as a single string literal.
I am going to make a new upload and release at some point. If you want I can do it sooner rather than later.