mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 02:02:14 +02:00
@@ -18,6 +18,8 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
|
|||||||
- Fix marks using different colors with regexes using only a single color
|
- Fix marks using different colors with regexes using only a single color
|
||||||
(:pull:`2663`)
|
(:pull:`2663`)
|
||||||
|
|
||||||
|
- Linux: Workaround for broken Nvidia drivers for old cards (:iss:`456`)
|
||||||
|
|
||||||
|
|
||||||
0.17.4 [2020-05-09]
|
0.17.4 [2020-05-09]
|
||||||
--------------------
|
--------------------
|
||||||
|
|||||||
@@ -656,19 +656,13 @@ static GLint border_uniform_locations[NUM_BORDER_UNIFORMS] = {0};
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
init_borders_program(void) {
|
init_borders_program(void) {
|
||||||
Program *p = program_ptr(BORDERS_PROGRAM);
|
#define SET_LOC(which) border_uniform_locations[BORDER_##which] = get_uniform_location(BORDERS_PROGRAM, #which);
|
||||||
int left = NUM_BORDER_UNIFORMS;
|
SET_LOC(viewport)
|
||||||
for (int i = 0; i < p->num_of_uniforms; i++, left--) {
|
SET_LOC(background_opacity)
|
||||||
#define SET_LOC(which) (strcmp(p->uniforms[i].name, #which) == 0) border_uniform_locations[BORDER_##which] = p->uniforms[i].location
|
SET_LOC(default_bg)
|
||||||
if SET_LOC(viewport);
|
SET_LOC(active_border_color)
|
||||||
else if SET_LOC(background_opacity);
|
SET_LOC(inactive_border_color)
|
||||||
else if SET_LOC(default_bg);
|
SET_LOC(bell_border_color)
|
||||||
else if SET_LOC(active_border_color);
|
|
||||||
else if SET_LOC(inactive_border_color);
|
|
||||||
else if SET_LOC(bell_border_color);
|
|
||||||
else { fatal("Unknown uniform in borders program: %s", p->uniforms[i].name); return; }
|
|
||||||
}
|
|
||||||
if (left) { fatal("Left over uniforms in borders program"); return; }
|
|
||||||
#undef SET_LOC
|
#undef SET_LOC
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user