mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-04 21:39:54 +00:00
DX12: fix invalid dimension (#2086)
DX12: workaround invalid texture dimension
This commit is contained in:
parent
d7a899f984
commit
51bdf1e3ed
@ -207,7 +207,12 @@ void D3D12GSRender::upload_textures(ID3D12GraphicsCommandList *command_list, siz
|
||||
continue;
|
||||
}
|
||||
size_t w = rsx::method_registers.fragment_textures[i].width(), h = rsx::method_registers.fragment_textures[i].height();
|
||||
// if (!w || !h) continue;
|
||||
|
||||
if (!w || !h)
|
||||
{
|
||||
LOG_ERROR(RSX, "Texture upload requested but invalid texture dimensions passed");
|
||||
continue;
|
||||
}
|
||||
|
||||
const u32 texaddr = rsx::get_address(rsx::method_registers.fragment_textures[i].offset(), rsx::method_registers.fragment_textures[i].location());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user