mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-08 09:09:46 +00:00
d3d12: Ignore texture with 0 width/height
Fix crash in voodoo chronicles.
This commit is contained in:
parent
ad3e50f90f
commit
3f495689c0
1 changed files with 1 additions and 0 deletions
|
@ -603,6 +603,7 @@ size_t D3D12GSRender::UploadTextures()
|
||||||
{
|
{
|
||||||
if (!m_textures[i].IsEnabled()) continue;
|
if (!m_textures[i].IsEnabled()) continue;
|
||||||
size_t w = m_textures[i].GetWidth(), h = m_textures[i].GetHeight();
|
size_t w = m_textures[i].GetWidth(), h = m_textures[i].GetHeight();
|
||||||
|
if (!w || !h) continue;
|
||||||
|
|
||||||
const u32 texaddr = GetAddress(m_textures[i].GetOffset(), m_textures[i].GetLocation());
|
const u32 texaddr = GetAddress(m_textures[i].GetOffset(), m_textures[i].GetLocation());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue