d3d12: Ignore texture with 0 width/height

Fix crash in voodoo chronicles.
This commit is contained in:
vlj 2015-06-18 22:29:59 +02:00 committed by Vincent Lejeune
parent ad3e50f90f
commit 3f495689c0

View file

@ -603,6 +603,7 @@ size_t D3D12GSRender::UploadTextures()
{
if (!m_textures[i].IsEnabled()) continue;
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());