[Refs #87: Static Analysis] string compare as uppercase or by length

This commit is contained in:
baldurk
2014-10-05 19:01:25 +01:00
parent d29024dd8b
commit e749f42876
20 changed files with 109 additions and 110 deletions
+2 -2
View File
@@ -204,8 +204,8 @@ namespace renderdocui.Controls
(m_Core.CurTextures[i].creationFlags & TextureCreationFlags.DSV) > 0));
include |= (Texs && (m_Core.CurTextures[i].creationFlags & TextureCreationFlags.RTV) == 0 &&
(m_Core.CurTextures[i].creationFlags & TextureCreationFlags.DSV) == 0);
include |= (filter != "" && (m_Core.CurTextures[i].name.ToLowerInvariant().Contains(filter.ToLowerInvariant())));
include |= (!RTs && !Texs && filter == "");
include |= (filter.Length > 0 && (m_Core.CurTextures[i].name.ToUpperInvariant().Contains(filter.ToUpperInvariant())));
include |= (!RTs && !Texs && filter.Length == 0);
if (include)
{