mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
D3D11: Fixed crash with RenderDoc.
This commit is contained in:
parent
ac34be556a
commit
64a32ecdf5
1 changed files with 9 additions and 1 deletions
|
@ -2392,6 +2392,14 @@ namespace bgfx
|
||||||
ID3D11Buffer* ptr;
|
ID3D11Buffer* ptr;
|
||||||
DX_CHECK(device->CreateBuffer(&desc, &srd, &ptr) );
|
DX_CHECK(device->CreateBuffer(&desc, &srd, &ptr) );
|
||||||
|
|
||||||
|
D3D11_BOX box;
|
||||||
|
box.left = 0;
|
||||||
|
box.top = 0;
|
||||||
|
box.front = 0;
|
||||||
|
box.right = _size;
|
||||||
|
box.bottom = 1;
|
||||||
|
box.back = 1;
|
||||||
|
|
||||||
deviceCtx->CopySubresourceRegion(m_ptr
|
deviceCtx->CopySubresourceRegion(m_ptr
|
||||||
, 0
|
, 0
|
||||||
, _offset
|
, _offset
|
||||||
|
@ -2399,7 +2407,7 @@ namespace bgfx
|
||||||
, 0
|
, 0
|
||||||
, ptr
|
, ptr
|
||||||
, 0
|
, 0
|
||||||
, NULL
|
, &box
|
||||||
);
|
);
|
||||||
|
|
||||||
DX_RELEASE(ptr, 0);
|
DX_RELEASE(ptr, 0);
|
||||||
|
|
Loading…
Reference in a new issue