Commit 307b51de authored by Richard Gobeille's avatar Richard Gobeille
Browse files

Duke3d, engine: hijack unused parameter passed to videoShowFrame()

A value of -1 now indicates that the GL state should be preserved.

This is used to fix #159
parent 6144f3be
......@@ -1958,10 +1958,14 @@ void videoShowFrame(int32_t w)
MicroProfileFlip();
// attached overlays and streaming hooks tend to change the GL state without setting it back
if (bpp > 8)
polymost_resetVertexPointers();
else
glsurface_refresh();
if (w != -1)
{
if (bpp > 8)
polymost_resetVertexPointers();
else
glsurface_refresh();
}
return;
}
......
......@@ -387,7 +387,7 @@ int32_t Anim_Play(const char *fn)
// this and showframe() instead of nextpage() are so that
// nobody tramples on our carefully set up GL state!
palfadedelta = 0;
videoShowFrame(0);
videoShowFrame(-1);
// I_ClearAllInput();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment