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:
Timm Bäder 2020-09-21 21:23:57 +02:00
parent 8d7b3bade3
commit fd728ea8bc
3 changed files with 3 additions and 3 deletions

View File

@ -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
{

View File

@ -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;

View File

@ -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;