mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 02:17:03 +00:00
Forgot that draw_cells() is called with a NULL window when drawing the tab bar
Fixes #4317
This commit is contained in:
parent
0456399ce5
commit
bca3179a6d
1 changed files with 2 additions and 2 deletions
|
|
@ -870,8 +870,8 @@ draw_cells(ssize_t vao_idx, ssize_t gvao_idx, GLfloat xstart, GLfloat ystart, GL
|
|||
);
|
||||
#undef SCALE
|
||||
bool has_underlying_image = has_bgimage(os_window);
|
||||
WindowLogoRenderData *wl = &window->window_logo;
|
||||
if (wl->id && (wl->instance = find_window_logo(global_state.all_window_logos, wl->id)) && wl->instance && wl->instance->load_from_disk_ok) {
|
||||
WindowLogoRenderData *wl;
|
||||
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;
|
||||
set_on_gpu_state(window->window_logo.instance, true);
|
||||
} else wl = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue