mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 00:38:10 +02:00
Forgot that draw_cells() is called with a NULL window when drawing the tab bar
Fixes #4317
This commit is contained in:
@@ -870,8 +870,8 @@ draw_cells(ssize_t vao_idx, ssize_t gvao_idx, GLfloat xstart, GLfloat ystart, GL
|
|||||||
);
|
);
|
||||||
#undef SCALE
|
#undef SCALE
|
||||||
bool has_underlying_image = has_bgimage(os_window);
|
bool has_underlying_image = has_bgimage(os_window);
|
||||||
WindowLogoRenderData *wl = &window->window_logo;
|
WindowLogoRenderData *wl;
|
||||||
if (wl->id && (wl->instance = find_window_logo(global_state.all_window_logos, wl->id)) && wl->instance && wl->instance->load_from_disk_ok) {
|
if (window && (wl = &window->window_logo) && wl->id && (wl->instance = find_window_logo(global_state.all_window_logos, wl->id)) && wl->instance && wl->instance->load_from_disk_ok) {
|
||||||
has_underlying_image = true;
|
has_underlying_image = true;
|
||||||
set_on_gpu_state(window->window_logo.instance, true);
|
set_on_gpu_state(window->window_logo.instance, true);
|
||||||
} else wl = NULL;
|
} else wl = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user