Fix the following error messages on Blender startup
since commit 308a12ac647d6f9b4ef2b6c403903e0aeb65a571.
This commit fixes T98194.
ERROR (gpu.shader): overlay_background VertShader:
|
178 | SHOW_AXIS_X = (1 << 0),
| ^
| overlay_shader_shared.h:28:18: Error: initializer of type int cannot be assigned to variable of type uint[and similar ones]
ERROR (gpu.shader): overlay_grid VertShader:
|
1275 | if (flag_test(grid_flag, PLANE_XY)) {
| ^ | grid_vert.glsl:15:7: Error: no matching function for call to `flag_test(int, uint)'; candidates are: | grid_vert.glsl:15:7: Error: bool flag_test(uint, uint) | grid_vert.glsl:15:7: Error: bool flag_test(int, int) | grid_vert.glsl:15:7: Error: if-statement condition must be scalar boolean
[and similar ones]
ERROR (gpu.shader): overlay_outline_prepass_gpencil VertShader:
|
1477 | return gpencil_vertex(ma,
| ^ | common_gpencil_lib.glsl:382:10: Error: no matching function for call to `gpencil_vertex(ivec4, ivec4, ivec4, ivec4, vec4, vec4, vec4, vec4, vec4, vec4, vec4, vec4, vec4, vec4, int, vec2, vec3, vec3, vec4, float, vec2, vec4, vec2, vec2, float)'; candidates are: | common_gpencil_lib.glsl:382:10: Error: vec4 gpencil_vertex(ivec4, ivec4, ivec4, ivec4, vec4, vec4, vec4, vec4, vec4, vec4, vec4, vec4, vec4, vec4, uint, vec2, vec3, vec3, vec4, float, vec2, vec4, vec2, vec2, float) | common_gpencil_lib.glsl:382:10: Error: vec4 gpencil_vertex(ivec4, ivec4, ivec4, ivec4, vec4, vec4, vec4, vec4, vec4, vec4, vec4, vec4, vec4, vec4, vec3, vec3, vec4, float, vec2, vec4, vec2, vec2, float) | | return gpencil_vertex(ma, | ^ | common_gpencil_lib.glsl:382:3: Error: `return' with wrong type error, in function `gpencil_vertex' returning vec4