BlindMindStudios / StarRuler2-Source

4X Space Strategy game Star Ruler 2's open source distribution.
http://starruler2.com
Other
1.45k stars 244 forks source link

[Linux][Noncritical?] Shader compilation failure in main menu #16

Closed Houkime closed 5 years ago

Houkime commented 5 years ago

OS: Arch Linux as of 22.07.2018 Latest (2 days or so) mesa-git with llvm-svn (their version numbers are not always displayed correctly). Nothing really happens, menu works, just an error in console

OpenGL vendor 'X.Org', renderer 'Radeon RX 550 Series (POLARIS12, DRM 3.25.0, 4.17.8-1-ARCH, LLVM 7.0.0)'
       version '4.4 (Compatibility Profile) Mesa 18.2.0-devel (git-b21b38c46c)'
Failed to compile shader: /opt/starruler2/data/shaders/source/distant_faded_icon_ps.txt
0:7(43): error: no matching function for call to `max(float, int)'; candidates are:
0:7(43): error:    float max(float, float)
0:7(43): error:    vec2 max(vec2, float)
0:7(43): error:    vec3 max(vec3, float)
0:7(43): error:    vec4 max(vec4, float)
0:7(43): error:    vec2 max(vec2, vec2)
0:7(43): error:    vec3 max(vec3, vec3)
0:7(43): error:    vec4 max(vec4, vec4)
0:7(43): error:    int max(int, int)
0:7(43): error:    ivec2 max(ivec2, int)
0:7(43): error:    ivec3 max(ivec3, int)
0:7(43): error:    ivec4 max(ivec4, int)
0:7(43): error:    ivec2 max(ivec2, ivec2)
0:7(43): error:    ivec3 max(ivec3, ivec3)
0:7(43): error:    ivec4 max(ivec4, ivec4)
0:7(37): error: operands to arithmetic operators must be numeric
0:7(36): error: operands to arithmetic operators must be numeric
0:7(17): error: cannot construct `vec4' from a non-numeric data type
DaloLorn commented 5 years ago

The menu works, but you will experience reduced or otherwise buggy GUI functionality in the game. The shader's relevance should become obvious as you zoom out of a system.

JonMicheelsen commented 5 years ago

Damn, that's a picky compiler:P Just change the 0 in the max() to 0.0 an you're good.