mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-04 05:55:31 +02:00
Correctly set bitmap texture for one-frame GIFs
This commit is contained in:
parent
4ffc89cc7b
commit
4cd35cc3b6
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue