mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-25 16:06:31 +00:00
[Refs #87: Static Analysis] string compare as uppercase or by length
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user