wined3d: Use WINED3DPRESENT_BACK_BUFFER_MAX rather than D3DPRESENT_BACK_BUFFER_MAX.
This commit is contained in:
parent
d4d165afd8
commit
3e77ffc563
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue