mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-08-29 06:28:22 +00:00
D3D12: Fixed initial data upload for buffers with UAV. (#3850)
This commit is contained in:
committed by
GitHub
parent
f0ff45697b
commit
3a5d1df4ff
@@ -5654,7 +5654,7 @@ namespace bgfx { namespace d3d12
|
||||
: D3D12_RESOURCE_STATE_GENERIC_READ
|
||||
);
|
||||
|
||||
if (!m_dynamic)
|
||||
if (NULL != _data)
|
||||
{
|
||||
update(commandList, 0, _size, _data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user