winport - fix crash on startup with clean ini file
This commit is contained in:
parent
bc84d6930b
commit
69ee626639
|
@ -4957,7 +4957,9 @@ DOKEYDOWN:
|
||||||
|
|
||||||
if(!romloaded)
|
if(!romloaded)
|
||||||
{
|
{
|
||||||
Display();
|
//ugh, dont do this when creating the window. in case we're using ddraw display method, ddraw wont be setup yet
|
||||||
|
if(ddraw.handle)
|
||||||
|
Display();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -7254,7 +7256,6 @@ bool DDRAW::createSurfaces(HWND hwnd)
|
||||||
if (!handle) return true;
|
if (!handle) return true;
|
||||||
|
|
||||||
if (clip) { clip->Release(); clip = NULL; }
|
if (clip) { clip->Release(); clip = NULL; }
|
||||||
if (surface.back) { surface.back->Release(); surface.back = NULL; }
|
|
||||||
if (surface.primary) { surface.primary->Release(); surface.primary = NULL; }
|
if (surface.primary) { surface.primary->Release(); surface.primary = NULL; }
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue