mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
always create dc for backbuffers
This commit is contained in:
parent
c636336243
commit
f349c4a9eb
@ -1436,7 +1436,8 @@ HRESULT dd_CreateSurface(
|
||||
}
|
||||
|
||||
|
||||
if (InterlockedExchangeAdd(&g_dds_gdi_handles, 0) < 4000 || (dst_surface->caps & DDSCAPS_PRIMARYSURFACE))
|
||||
if (InterlockedExchangeAdd(&g_dds_gdi_handles, 0) < 4000 ||
|
||||
(dst_surface->caps & (DDSCAPS_PRIMARYSURFACE|DDSCAPS_FLIP)))
|
||||
{
|
||||
dst_surface->hdc = CreateCompatibleDC(g_ddraw->render.hdc);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user