1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-23 13:43:19 +00:00

anims:: fixed some issues with exporting animations

This commit is contained in:
Zeno Rogue 2018-09-10 22:37:17 +02:00
parent 47fab92cf3
commit 3bf2ed1d2d

View File

@ -284,8 +284,11 @@ void saveHighQualityShot(const char *fname, const char *caption, int fade) {
glbuf.clear(numi==1 ? backcolor : i ? 0xFFFFFF : 0);
#if CAP_RUG
if(rug::rugged)
if(rug::rugged) {
if(!rug::renderonce) rug::prepareTexture();
glbuf.enable();
rug::drawRugScene();
}
else
#endif
drawfullmap();
@ -510,7 +513,9 @@ bool record_animation() {
char buf[1000];
snprintf(buf, 1000, animfile.c_str(), i);
apply();
saveHighQualityShot(buf);
rollback();
}
return true;
}