From d711a1e7f258732adeec7a974619c8a60afd01a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Proch=C3=A1zka?= Date: Thu, 18 Nov 2010 10:48:42 +0100 Subject: [RFC:][2/3] wined3d: Allow any count of backbuffers for gdi surfaces. --- dlls/wined3d/swapchain.c | 21 ++++++++++++--------- 1 files changed, 12 insertions(+), 9 deletions(-) diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c index a29eeb4..b6b8f0b 100644 --- a/dlls/wined3d/swapchain.c +++ b/dlls/wined3d/swapchain.c @@ -544,17 +544,20 @@ HRESULT swapchain_init(IWineD3DSwapChainImpl *swapchain, WINED3DSURFTYPE surface HRESULT hr; UINT i; - if (present_parameters->BackBufferCount > WINED3DPRESENT_BACK_BUFFER_MAX) + if( surface_type != SURFACE_GDI ) { - FIXME("The application requested %u back buffers, this is not supported.\n", - present_parameters->BackBufferCount); - return WINED3DERR_INVALIDCALL; - } + if (present_parameters->BackBufferCount > WINED3DPRESENT_BACK_BUFFER_MAX) + { + FIXME("The application requested %u back buffers, this is not supported.\n", + present_parameters->BackBufferCount); + return WINED3DERR_INVALIDCALL; + } - if (present_parameters->BackBufferCount > 1) - { - FIXME("The application requested more than one back buffer, this is not properly supported.\n" - "Please configure the application to use double buffering (1 back buffer) if possible.\n"); + if (present_parameters->BackBufferCount > 1) + { + FIXME("The application requested more than one back buffer, this is not properly supported.\n" + "Please configure the application to use double buffering (1 back buffer) if possible.\n"); + } } switch (surface_type) -- 1.7.1