mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-04 22:15:33 +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::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);
|
gif_finalise(handler.gif);
|
||||||
delete handler.gif;
|
delete handler.gif;
|
||||||
delete handler.gif_data;
|
delete handler.gif_data;
|
||||||
|
|
||||||
|
p->gl = texfbo;
|
||||||
p->addTaintedArea(rect());
|
p->addTaintedArea(rect());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue