mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
Reverted change (nw)
This commit is contained in:
parent
e68d22d779
commit
4f5f8dba28
6
3rdparty/bgfx/src/renderer_d3d11.cpp
vendored
6
3rdparty/bgfx/src/renderer_d3d11.cpp
vendored
@ -2364,8 +2364,10 @@ namespace bgfx
|
||||
BX_CHECK(m_dynamic, "Must be dynamic!");
|
||||
|
||||
D3D11_MAPPED_SUBRESOURCE mapped;
|
||||
BX_UNUSED(_discard);
|
||||
D3D11_MAP type = D3D11_MAP_WRITE_DISCARD;
|
||||
D3D11_MAP type = m_dynamic && ( (0 == _offset && m_size == _size) || _discard)
|
||||
? D3D11_MAP_WRITE_DISCARD
|
||||
: D3D11_MAP_WRITE_NO_OVERWRITE
|
||||
;
|
||||
DX_CHECK(deviceCtx->Map(m_ptr, 0, type, 0, &mapped));
|
||||
memcpy((uint8_t*)mapped.pData + _offset, _data, _size);
|
||||
deviceCtx->Unmap(m_ptr, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user