1
0
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:
narzoul 2016-04-30 16:19:12 +02:00
parent 495325c984
commit 441d7794cd

View File

@ -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();