mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 06:25:37 +00:00
GPU/D3D12: Fix incorrect stream buffer upload size
This commit is contained in:
parent
4668334516
commit
cb1e15da58
|
@ -802,7 +802,7 @@ bool GPU_HW_D3D12::BlitVRAMReplacementTexture(const TextureReplacementTexture* t
|
|||
const u32 sb_offset = m_texture_replacment_stream_buffer.GetCurrentOffset();
|
||||
D3D12::Texture::CopyToUploadBuffer(tex->GetPixels(), tex->GetByteStride(), tex->GetHeight(),
|
||||
m_texture_replacment_stream_buffer.GetCurrentHostPointer(), copy_pitch);
|
||||
m_texture_replacment_stream_buffer.CommitMemory(sb_offset);
|
||||
m_texture_replacment_stream_buffer.CommitMemory(required_size);
|
||||
m_vram_write_replacement_texture.CopyFromBuffer(0, 0, tex->GetWidth(), tex->GetHeight(), copy_pitch,
|
||||
m_texture_replacment_stream_buffer.GetBuffer(), sb_offset);
|
||||
m_vram_write_replacement_texture.TransitionToState(D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE);
|
||||
|
|
Loading…
Reference in a new issue