Correctly set bitmap texture for one-frame GIFs

This commit is contained in:
Struma 2021-05-03 15:33:55 -04:00 committed by Roza
parent 4ffc89cc7b
commit 4cd35cc3b6

View file

@ -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;
}