Commit 90e2a676 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

ddraw: Do not set the rendertarget flag just because of the backbuffer flag.

There are also overlay backbuffers, which aren't render targets. The primarysurface and d3ddevice cap flags should be enough here.
parent 1f4cf351
......@@ -2022,7 +2022,6 @@ IDirectDrawImpl_CreateNewSurface(IDirectDrawImpl *This,
}
/* Get the correct wined3d usage */
if (pDDSD->ddsCaps.dwCaps & (DDSCAPS_PRIMARYSURFACE |
DDSCAPS_BACKBUFFER |
DDSCAPS_3DDEVICE ) )
{
Usage |= WINED3DUSAGE_RENDERTARGET;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment