mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Fix incorrect null check that could crash with no VS bound
This commit is contained in:
@@ -390,7 +390,7 @@ namespace renderdocui.Code
|
||||
for (int i = 0; i < attrs.Length; i++)
|
||||
{
|
||||
int attrib = -1;
|
||||
if (m_GL.m_VS.BindpointMapping != null && m_GL.m_VS.BindpointMapping != null)
|
||||
if (m_GL.m_VS.BindpointMapping != null && m_GL.m_VS.ShaderDetails != null)
|
||||
attrib = m_GL.m_VS.BindpointMapping.InputAttributes[i];
|
||||
else
|
||||
attrib = i;
|
||||
@@ -406,8 +406,8 @@ namespace renderdocui.Code
|
||||
if (!attrs[i].Enabled) continue;
|
||||
|
||||
ret[a].Name = String.Format("attr{0}", i);
|
||||
|
||||
if (m_GL.m_VS.BindpointMapping != null && m_GL.m_VS.BindpointMapping != null)
|
||||
|
||||
if (m_GL.m_VS.BindpointMapping != null && m_GL.m_VS.ShaderDetails != null)
|
||||
{
|
||||
int attrib = m_GL.m_VS.BindpointMapping.InputAttributes[i];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user