mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +00:00
- fixed: Swapping swtruecolor no longer crashes in OpenGL mode after selecting Software in the menu
This commit is contained in:
parent
8a36bf5c09
commit
aae9b33198
1 changed files with 7 additions and 4 deletions
|
@ -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
|
// 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.
|
// way to force a CreateFramebuffer call without a lot of refactoring.
|
||||||
NewWidth = screen->GetWidth();
|
if (currentrenderer == 0)
|
||||||
NewHeight = screen->GetHeight();
|
{
|
||||||
NewBits = DisplayBits;
|
NewWidth = screen->GetWidth();
|
||||||
setmodeneeded = true;
|
NewHeight = screen->GetHeight();
|
||||||
|
NewBits = DisplayBits;
|
||||||
|
setmodeneeded = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CUSTOM_CVAR (Bool, fullscreen, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG|CVAR_NOINITCALL)
|
CUSTOM_CVAR (Bool, fullscreen, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG|CVAR_NOINITCALL)
|
||||||
|
|
Loading…
Reference in a new issue