Skip to content

Commit

Permalink
- fixed: Swapping swtruecolor no longer crashes in OpenGL mode after …
Browse files Browse the repository at this point in the history
…selecting Software in the menu
  • Loading branch information
madame-rachelle committed Apr 30, 2017
1 parent 8a36bf5 commit aae9b33
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/win32/hardware.cpp
Expand Up @@ -417,10 +417,13 @@ CUSTOM_CVAR(Bool, swtruecolor, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG|CVAR_NOINITC
{
// Strictly speaking this doesn't require a mode switch, but it is the easiest
// way to force a CreateFramebuffer call without a lot of refactoring.
NewWidth = screen->GetWidth();
NewHeight = screen->GetHeight();
NewBits = DisplayBits;
setmodeneeded = true;
if (currentrenderer == 0)
{
NewWidth = screen->GetWidth();
NewHeight = screen->GetHeight();
NewBits = DisplayBits;
setmodeneeded = true;
}
}

CUSTOM_CVAR (Bool, fullscreen, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG|CVAR_NOINITCALL)
Expand Down

0 comments on commit aae9b33

Please sign in to comment.