Skip to content
Snippets Groups Projects
Commit 96b12f09 authored by Monster Iestyn's avatar Monster Iestyn
Browse files

Merge branch 'apng-opengl' into 'master'

opengl apng fix

See merge request STJr/SRB2!497
parents bfa73252 c5916337
Branches
Tags
No related merge requests found
......@@ -1032,7 +1032,7 @@ static boolean M_SetupaPNG(png_const_charp filename, png_bytep pal)
static inline moviemode_t M_StartMovieAPNG(const char *pathname)
{
#ifdef USE_APNG
UINT8 *palette;
UINT8 *palette = NULL;
const char *freename = NULL;
boolean ret = false;
......@@ -1048,8 +1048,13 @@ static inline moviemode_t M_StartMovieAPNG(const char *pathname)
return MM_OFF;
}
if (rendermode == render_soft) M_CreateScreenShotPalette();
ret = M_SetupaPNG(va(pandf,pathname,freename), (palette = screenshot_palette));
if (rendermode == render_soft)
{
M_CreateScreenShotPalette();
palette = screenshot_palette;
}
ret = M_SetupaPNG(va(pandf,pathname,freename), palette);
if (!ret)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment