Skip to content

Commit

Permalink
Fix #6555
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Aug 16, 2023
1 parent d006ba5 commit b276b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kitty/shaders.c
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ draw_cells(ssize_t vao_idx, const ScreenRenderData *srd, OSWindow *os_window, bo
} else wl = NULL;
ImageRenderData *previous_graphics_render_data = NULL;
if (os_window->live_resize.in_progress && screen->grman->count && (crd.x_ratio != 1 || crd.y_ratio != 1)) {
previous_graphics_render_data = malloc(sizeof(previous_graphics_render_data[0]) * screen->grman->count);
previous_graphics_render_data = malloc(sizeof(previous_graphics_render_data[0]) * MAX(screen->grman->capacity, screen->grman->count));
if (previous_graphics_render_data) {
memcpy(previous_graphics_render_data, screen->grman->render_data, sizeof(previous_graphics_render_data[0]) * screen->grman->count);
for (size_t i = 0; i < screen->grman->count; i++)
Expand Down

0 comments on commit b276b56

Please sign in to comment.