mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-21 14:23:02 +01:00
Added multiple windows example.
This commit is contained in:
@@ -2539,10 +2539,16 @@ namespace bgfx
|
||||
|
||||
void FrameBufferD3D9::create(uint16_t _denseIdx, void* _nwh, uint32_t _width, uint32_t _height, TextureFormat::Enum _depthFormat)
|
||||
{
|
||||
BX_UNUSED(_width, _height, _depthFormat);
|
||||
BX_UNUSED(_depthFormat);
|
||||
|
||||
m_hwnd = (HWND)_nwh;
|
||||
DX_CHECK(s_renderD3D9->m_device->CreateAdditionalSwapChain(&s_renderD3D9->m_params, &m_swapChain) );
|
||||
|
||||
D3DPRESENT_PARAMETERS params;
|
||||
memcpy(¶ms, &s_renderD3D9->m_params, sizeof(D3DPRESENT_PARAMETERS) );
|
||||
params.BackBufferWidth = _width;
|
||||
params.BackBufferHeight = _height;
|
||||
|
||||
DX_CHECK(s_renderD3D9->m_device->CreateAdditionalSwapChain(¶ms, &m_swapChain) );
|
||||
DX_CHECK(m_swapChain->GetBackBuffer(0, D3DBACKBUFFER_TYPE_MONO, &m_color[0]) );
|
||||
m_colorHandle[0].idx = invalidHandle;
|
||||
m_depthStencil = NULL;
|
||||
|
||||
Reference in New Issue
Block a user