From 2dad17928506bf258418ae9834a35dd32ae9931a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 3 Feb 2021 16:00:31 +0530 Subject: [PATCH] ... --- kitty/graphics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/graphics.c b/kitty/graphics.c index bc711fa00..bc3c1e150 100644 --- a/kitty/graphics.c +++ b/kitty/graphics.c @@ -533,7 +533,7 @@ initialize_load_data(GraphicsManager *self, const GraphicsCommand *g, Image *img #define MAX_IMAGE_DIMENSION 10000u static void -upload_to_gpu(GraphicsManager *self, Image *img, const bool is_opaque, const bool is_4byte_aligned, const void *data) { +upload_to_gpu(GraphicsManager *self, Image *img, const bool is_opaque, const bool is_4byte_aligned, const uint8_t *data) { if (!self->context_made_current_for_this_command) { if (!self->window_id) return; if (!make_window_context_current(self->window_id)) return; @@ -993,7 +993,7 @@ update_current_frame(GraphicsManager *self, Image *img, const CoalescedFrameData } data = &cfd; } - upload_to_gpu(self, img, data->is_opaque, data->is_4byte_aligned, data); + upload_to_gpu(self, img, data->is_opaque, data->is_4byte_aligned, data->buf); if (needs_load) free(data->buf); img->current_frame_shown_at = monotonic(); }