Don't try to create proxy textures that aren't supported by the proxy

This commit is contained in:
baldurk
2019-12-13 11:45:44 +00:00
parent 810be9ae8e
commit 6ffd725a13
+4 -1
View File
@@ -745,7 +745,10 @@ void ImageViewer::RefreshFile()
}
if(m_TextureID == ResourceId())
m_TextureID = m_Proxy->CreateProxyTexture(texDetails);
{
if(m_Proxy->IsTextureSupported(texDetails))
m_TextureID = m_Proxy->CreateProxyTexture(texDetails);
}
if(m_TextureID == ResourceId())
RDCERR("Couldn't create proxy texture for image file");