mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
Merge branch 'shader' into 'master'
ngl: Fix crash with intel driver on Windows when compiling shaders Closes #3783 See merge request GNOME/gtk!3344
This commit is contained in:
commit
bd7df4b816
@ -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