mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1094097. Fix building ANGLE without D3D11. r=jrmuizel
--HG-- extra : rebase_source : 0a1bfad2cdd76ddf26565d664f3b0e1c5a208cba
This commit is contained in:
parent
81b9776268
commit
4078db4ee4
@ -1,3 +1,3 @@
|
||||
#define ANGLE_COMMIT_HASH "f0cacb827771"
|
||||
#define ANGLE_COMMIT_HASH "0fb6a60df77b"
|
||||
#define ANGLE_COMMIT_HASH_SIZE 12
|
||||
#define ANGLE_COMMIT_DATE "2014-10-28 23:00:12 -0400"
|
||||
#define ANGLE_COMMIT_DATE "2014-11-28 13:56:37 -0500"
|
||||
|
@ -16,12 +16,14 @@
|
||||
#include "common/debug.h"
|
||||
#include "common/platform.h"
|
||||
|
||||
#ifdef ANGLE_ENABLE_D3D11
|
||||
// DXGISwapChain and DXGIFactory are typedef'd to specific required
|
||||
// types. The HWND NativeWindow implementation requires IDXGISwapChain
|
||||
// and IDXGIFactory and the Windows Store NativeWindow
|
||||
// implementation requires IDXGISwapChain1 and IDXGIFactory2.
|
||||
typedef IDXGISwapChain DXGISwapChain;
|
||||
typedef IDXGIFactory DXGIFactory;
|
||||
#endif
|
||||
|
||||
namespace rx
|
||||
{
|
||||
@ -37,9 +39,11 @@ class NativeWindow
|
||||
inline bool getClientRect(LPRECT rect) { return GetClientRect(mWindow, rect) == TRUE; }
|
||||
inline bool isIconic() { return IsIconic(mWindow) == TRUE; }
|
||||
|
||||
#ifdef ANGLE_ENABLE_D3D11
|
||||
HRESULT createSwapChain(ID3D11Device* device, DXGIFactory* factory,
|
||||
DXGI_FORMAT format, UINT width, UINT height,
|
||||
DXGISwapChain** swapChain);
|
||||
#endif
|
||||
|
||||
inline EGLNativeWindowType getNativeWindow() const { return mWindow; }
|
||||
|
||||
|
@ -20,6 +20,7 @@ NativeWindow::NativeWindow(EGLNativeWindowType window) : mWindow(window)
|
||||
{
|
||||
}
|
||||
|
||||
#ifdef ANGLE_ENABLE_D3D11
|
||||
HRESULT NativeWindow::createSwapChain(ID3D11Device* device, DXGIFactory* factory,
|
||||
DXGI_FORMAT format, unsigned int width, unsigned int height,
|
||||
DXGISwapChain** swapChain)
|
||||
@ -48,4 +49,5 @@ HRESULT NativeWindow::createSwapChain(ID3D11Device* device, DXGIFactory* factory
|
||||
|
||||
return factory->CreateSwapChain(device, &swapChainDesc, swapChain);
|
||||
}
|
||||
};
|
||||
#endif
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user