Commit 3e77ffc5 authored by H. Verbeet's avatar H. Verbeet Committed by Alexandre Julliard

wined3d: Use WINED3DPRESENT_BACK_BUFFER_MAX rather than D3DPRESENT_BACK_BUFFER_MAX.

parent d4d165af
......@@ -1247,7 +1247,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
*******************************/
/* Check the params */
if(*pPresentationParameters->BackBufferCount > D3DPRESENT_BACK_BUFFER_MAX) {
if(*pPresentationParameters->BackBufferCount > WINED3DPRESENT_BACK_BUFFER_MAX) {
ERR("App requested %d back buffers, this is not supported for now\n", *pPresentationParameters->BackBufferCount);
return WINED3DERR_INVALIDCALL;
} else if (*pPresentationParameters->BackBufferCount > 1) {
......
......@@ -621,6 +621,8 @@ typedef enum _WINED3DBACKBUFFER_TYPE {
WINED3DBACKBUFFER_TYPE_FORCE_DWORD = 0x7fffffff
} WINED3DBACKBUFFER_TYPE;
#define WINED3DPRESENT_BACK_BUFFER_MAX 3
typedef enum _WINED3DSWAPEFFECT {
WINED3DSWAPEFFECT_DISCARD = 1,
WINED3DSWAPEFFECT_FLIP = 2,
......
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