mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +00:00
Not really important or anything, but checking render_soft == rendermode rather than rendermode == render_soft always bugged me. And it's not consistent with the rest of the source code (or at least most of it) anyway.
This commit is contained in:
parent
d1bbd1261e
commit
4979ab6b8e
1 changed files with 3 additions and 3 deletions
|
@ -899,7 +899,7 @@ static inline boolean I_SkipFrame(void)
|
|||
{
|
||||
static boolean skip = false;
|
||||
|
||||
if (render_soft != rendermode)
|
||||
if (rendermode != render_soft)
|
||||
return false;
|
||||
|
||||
skip = !skip;
|
||||
|
@ -1190,7 +1190,7 @@ INT32 VID_SetMode(INT32 modeNum)
|
|||
|
||||
SDLSetMode(vid.width, vid.height, USE_FULLSCREEN);
|
||||
|
||||
if (render_soft == rendermode)
|
||||
if (rendermode == render_soft)
|
||||
{
|
||||
if (bufSurface)
|
||||
{
|
||||
|
@ -1483,7 +1483,7 @@ void I_ShutdownGraphics(void)
|
|||
rendermode = render_none;
|
||||
if (icoSurface) SDL_FreeSurface(icoSurface);
|
||||
icoSurface = NULL;
|
||||
if (render_soft == oldrendermode)
|
||||
if (oldrendermode == render_soft)
|
||||
{
|
||||
if (vidSurface) SDL_FreeSurface(vidSurface);
|
||||
vidSurface = NULL;
|
||||
|
|
Loading…
Reference in a new issue