File wine-bulanci.patch of Package wine
--- dlls/ddraw/ddraw.c
+++ dlls/ddraw/ddraw.c
@@ -2293,11 +2293,12 @@ IDirectDrawImpl_CreateSurface(IDirectDra
return DDERR_NOEXCLUSIVEMODE;
}
- if(DDSD->ddsCaps.dwCaps & (DDSCAPS_FRONTBUFFER | DDSCAPS_BACKBUFFER)) {
- WARN("Application tried to create an explicit front or back buffer\n");
+ if(DDSD->ddsCaps.dwCaps & DDSCAPS_FRONTBUFFER) {
+ WARN("Application tried to create an explicit front buffer\n");
LeaveCriticalSection(&ddraw_cs);
return DDERR_INVALIDCAPS;
}
+
/* Check cube maps but only if the size includes them */
if (DDSD->dwSize >= sizeof(DDSURFACEDESC2))
{