mirror of
https://github.com/narzoul/DDrawCompat
synced 2024-12-30 08:55:36 +01:00
Fixed hangups caused by unreleased back buffer surface
This commit is contained in:
parent
495325c984
commit
441d7794cd
@ -111,7 +111,11 @@ namespace
|
||||
ResetEvent(g_updateEvent);
|
||||
timeEndPeriod(1);
|
||||
g_frontBuffer = nullptr;
|
||||
g_backBuffer = nullptr;
|
||||
if (g_backBuffer)
|
||||
{
|
||||
CompatDirectDrawSurface<IDirectDrawSurface7>::s_origVtable.Release(g_backBuffer);
|
||||
g_backBuffer = nullptr;
|
||||
}
|
||||
g_isFullScreen = false;
|
||||
CompatPaletteConverter::release();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user