mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
ngl: Fix crash with intel driver on Windows when compiling shaders
Fixes #3783.
This commit is contained in:
parent
5531906973
commit
086e1ed39f
@ -32,7 +32,10 @@ uniform float u_color_stops[MAX_COLOR_STOPS * 5];
|
||||
_NOPERSPECTIVE_ _IN_ vec2 coord;
|
||||
|
||||
float get_offset(int index) {
|
||||
return u_color_stops[5 * index];
|
||||
// u_color_stops[5 * index] makes Intel Windows driver crash.
|
||||
// See https://gitlab.gnome.org/GNOME/gtk/-/issues/3783
|
||||
int base = 5 * index;
|
||||
return u_color_stops[base];
|
||||
}
|
||||
|
||||
vec4 get_color(int index) {
|
||||
|
@ -56,7 +56,10 @@ uniform bool u_repeat;
|
||||
_NOPERSPECTIVE_ _IN_ vec4 info;
|
||||
|
||||
float get_offset(int index) {
|
||||
return u_color_stops[5 * index];
|
||||
// u_color_stops[5 * index] makes Intel Windows driver crash.
|
||||
// See https://gitlab.gnome.org/GNOME/gtk/-/issues/3783
|
||||
int base = 5 * index;
|
||||
return u_color_stops[base];
|
||||
}
|
||||
|
||||
vec4 get_color(int index) {
|
||||
|
@ -35,7 +35,10 @@ uniform float u_color_stops[MAX_COLOR_STOPS * 5];
|
||||
_NOPERSPECTIVE_ _IN_ vec2 coord;
|
||||
|
||||
float get_offset(int index) {
|
||||
return u_color_stops[5 * index];
|
||||
// u_color_stops[5 * index] makes Intel Windows driver crash.
|
||||
// See https://gitlab.gnome.org/GNOME/gtk/-/issues/3783
|
||||
int base = 5 * index;
|
||||
return u_color_stops[base];
|
||||
}
|
||||
|
||||
vec4 get_color(int index) {
|
||||
|
Loading…
Reference in New Issue
Block a user