Commit b62d55d8 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

ddraw: Don't bother checking for DDSD_CAPS in CreateSurface().

We made sure it's always set earlier.
parent 8ce73e2a
......@@ -2927,10 +2927,8 @@ static HRESULT CreateSurface(struct ddraw *ddraw, DDSURFACEDESC2 *DDSD,
desc2.u4.ddpfPixelFormat.dwSize=sizeof(DDPIXELFORMAT); /* Just to be sure */
/* The first surface is a front buffer, the back buffer is created afterwards */
if( (desc2.dwFlags & DDSD_CAPS) && (desc2.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE) )
{
if (desc2.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE)
desc2.ddsCaps.dwCaps |= DDSCAPS_FRONTBUFFER;
}
if (FAILED(hr = ddraw_surface_create_texture(ddraw, &desc2, version, &object)))
{
......
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