From 4cd35cc3b6c1b2690c266471e135ca8c548b6c94 Mon Sep 17 00:00:00 2001 From: Struma Date: Mon, 3 May 2021 15:33:55 -0400 Subject: [PATCH] Correctly set bitmap texture for one-frame GIFs --- src/display/bitmap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/display/bitmap.cpp b/src/display/bitmap.cpp index 4e3c0f68..fcad2c47 100644 --- a/src/display/bitmap.cpp +++ b/src/display/bitmap.cpp @@ -476,11 +476,12 @@ Bitmap::Bitmap(const char *filename) } TEX::bind(texfbo.tex); - TEX::uploadImage(p->gl.width, p->gl.height, handler.gif->frame_image, GL_RGBA); + TEX::uploadImage(handler.gif->width, handler.gif->height, handler.gif->frame_image, GL_RGBA); gif_finalise(handler.gif); delete handler.gif; delete handler.gif_data; + p->gl = texfbo; p->addTaintedArea(rect()); return; }