mirror of https://github.com/PCSX2/pcsx2.git
D3D12/Texture: Fix crash when upload buffer exhausts
This commit is contained in:
parent
ab56cfe762
commit
5999a1a62e
|
@ -26,11 +26,6 @@
|
|||
|
||||
using namespace D3D12;
|
||||
|
||||
// Somehow NOMINMAX isn't getting set for CMake builds...
|
||||
#ifdef min
|
||||
#undef min
|
||||
#endif
|
||||
|
||||
Texture::Texture() = default;
|
||||
|
||||
Texture::Texture(ID3D12Resource* resource, D3D12_RESOURCE_STATES state)
|
||||
|
@ -349,7 +344,7 @@ ID3D12GraphicsCommandList* Texture::BeginStreamUpdate(ID3D12GraphicsCommandList*
|
|||
}
|
||||
|
||||
// cmdlist change
|
||||
return g_d3d12_context->GetInitCommandList();
|
||||
cmdlist = g_d3d12_context->GetInitCommandList();
|
||||
}
|
||||
|
||||
*out_data = g_d3d12_context->GetTextureStreamBuffer().GetCurrentHostPointer();
|
||||
|
|
Loading…
Reference in New Issue