mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-26 20:01:17 +00:00
Don't try to create proxy textures that aren't supported by the proxy
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user