forked from AuroraMiddleware/gtk
gl renderer: Lower maximum gradient stop count
6 is still plenty according to my market research. Should help with #2624
This commit is contained in:
parent
8d7b3bade3
commit
fd728ea8bc
@ -14,7 +14,7 @@
|
||||
|
||||
#define GL_N_VERTICES 6
|
||||
#define GL_N_PROGRAMS 14
|
||||
#define GL_MAX_GRADIENT_STOPS 8
|
||||
#define GL_MAX_GRADIENT_STOPS 6
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
// VERTEX_SHADER
|
||||
uniform vec2 u_start_point;
|
||||
uniform vec2 u_end_point;
|
||||
uniform float u_color_stops[8 * 5];
|
||||
uniform float u_color_stops[6 * 5];
|
||||
uniform int u_num_color_stops;
|
||||
|
||||
_OUT_ vec2 startPoint;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// VERTEX_SHADER
|
||||
uniform float u_start;
|
||||
uniform float u_end;
|
||||
uniform float u_color_stops[8 * 5];
|
||||
uniform float u_color_stops[6 * 5];
|
||||
uniform int u_num_color_stops;
|
||||
uniform vec2 u_radius;
|
||||
uniform vec2 u_center;
|
||||
|
Loading…
Reference in New Issue
Block a user