wined3d: Get rid of the wantsDepthStencilBuffer in IWineD3DSwapChainImpl.
This commit is contained in:
parent
c71a89c597
commit
d95ae08ad4
|
@ -1618,19 +1618,12 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
|
|||
if (This->auto_depth_stencil_buffer != NULL)
|
||||
IWineD3DSurface_SetContainer(This->auto_depth_stencil_buffer, 0);
|
||||
}
|
||||
|
||||
/** TODO: A check on width, height and multisample types
|
||||
*(since the zbuffer must be at least as large as the render target and have the same multisample parameters)
|
||||
****************************/
|
||||
object->wantsDepthStencilBuffer = TRUE;
|
||||
} else {
|
||||
object->wantsDepthStencilBuffer = FALSE;
|
||||
}
|
||||
|
||||
IWineD3DSwapChain_GetGammaRamp((IWineD3DSwapChain *) object, &object->orig_gamma);
|
||||
|
||||
TRACE("Created swapchain %p\n", object);
|
||||
TRACE("FrontBuf @ %p, BackBuf @ %p, DepthStencil %d\n",object->frontBuffer, object->backBuffer ? object->backBuffer[0] : NULL, object->wantsDepthStencilBuffer);
|
||||
TRACE("FrontBuf @ %p, BackBuf @ %p, DepthStencil %d\n",object->frontBuffer, object->backBuffer ? object->backBuffer[0] : NULL, pPresentationParameters->EnableAutoDepthStencil);
|
||||
return WINED3D_OK;
|
||||
|
||||
error:
|
||||
|
|
|
@ -1746,7 +1746,6 @@ typedef struct IWineD3DSwapChainImpl
|
|||
/* IWineD3DSwapChain fields */
|
||||
IWineD3DSurface **backBuffer;
|
||||
IWineD3DSurface *frontBuffer;
|
||||
BOOL wantsDepthStencilBuffer;
|
||||
WINED3DPRESENT_PARAMETERS presentParms;
|
||||
DWORD orig_width, orig_height;
|
||||
WINED3DFORMAT orig_fmt;
|
||||
|
|
Loading…
Reference in New Issue