Don't check width > 1 for image viewer to choose between 1D and 2D

This commit is contained in:
baldurk
2019-12-20 13:45:29 +00:00
parent 82745ce562
commit 763dbb5f13
+1 -1
View File
@@ -699,7 +699,7 @@ void ImageViewer::RefreshFile()
texDetails.arraysize > 1 ? TextureType::TextureCubeArray : TextureType::TextureCube;
texDetails.dimension = 2;
}
else if(texDetails.width > 1)
else if(texDetails.height > 1)
{
texDetails.type =
texDetails.arraysize > 1 ? TextureType::Texture2DArray : TextureType::Texture2D;