wined3d: Initialize swapchain.
This commit is contained in:
parent
2ea3dd12b1
commit
755d806f1a
|
@ -2003,7 +2003,7 @@ static void IWineD3DDeviceImpl_LoadLogo(IWineD3DDeviceImpl *This, const char *fi
|
||||||
|
|
||||||
static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPRESENT_PARAMETERS* pPresentationParameters, D3DCB_CREATEADDITIONALSWAPCHAIN D3DCB_CreateAdditionalSwapChain) {
|
static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPRESENT_PARAMETERS* pPresentationParameters, D3DCB_CREATEADDITIONALSWAPCHAIN D3DCB_CreateAdditionalSwapChain) {
|
||||||
IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *) iface;
|
IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *) iface;
|
||||||
IWineD3DSwapChainImpl *swapchain;
|
IWineD3DSwapChainImpl *swapchain = NULL;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
DWORD state;
|
DWORD state;
|
||||||
|
|
||||||
|
@ -2141,7 +2141,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPR
|
||||||
}
|
}
|
||||||
return WINED3D_OK;
|
return WINED3D_OK;
|
||||||
|
|
||||||
err_out:
|
err_out:
|
||||||
HeapFree(GetProcessHeap(), 0, This->render_targets);
|
HeapFree(GetProcessHeap(), 0, This->render_targets);
|
||||||
HeapFree(GetProcessHeap(), 0, This->fbo_color_attachments);
|
HeapFree(GetProcessHeap(), 0, This->fbo_color_attachments);
|
||||||
HeapFree(GetProcessHeap(), 0, This->draw_buffers);
|
HeapFree(GetProcessHeap(), 0, This->draw_buffers);
|
||||||
|
|
Loading…
Reference in New Issue