ddraw: Don't imply WINED3DUSAGE_RENDERTARGET on primary surfaces.

If the application actually wants to do 3D rendering on the primary surface,
it should set DDSCAPS_3DDEVICE as well.
This commit is contained in:
Henri Verbeet 2013-09-05 09:54:39 +02:00 committed by Alexandre Julliard
parent b80ab33571
commit 6f321ff2f9
1 changed files with 0 additions and 3 deletions

View File

@ -5716,10 +5716,7 @@ HRESULT ddraw_surface_init(struct ddraw_surface *surface, struct ddraw *ddraw,
}
if (desc->ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE)
{
usage |= WINED3DUSAGE_RENDERTARGET;
desc->ddsCaps.dwCaps |= DDSCAPS_VISIBLE;
}
if ((desc->ddsCaps.dwCaps & DDSCAPS_3DDEVICE) && !(desc->ddsCaps.dwCaps & DDSCAPS_ZBUFFER))
{