mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-22 06:26:30 +00:00
Fix 'conditional expression is constant' errors with RDCASSERT(false)
This commit is contained in:
@@ -4265,7 +4265,7 @@ void WrappedOpenGL::AddUsage(FetchDrawcall d)
|
||||
listSize = sizeof(rs.TexCubeArray);
|
||||
break;
|
||||
case eResType_Count:
|
||||
RDCASSERT(false);
|
||||
RDCERR("Invalid shader resource type");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -1220,7 +1220,7 @@ void GLReplay::SavePipelineState()
|
||||
target = eGL_TEXTURE_CUBE_MAP_ARRAY;
|
||||
break;
|
||||
case eResType_Count:
|
||||
RDCASSERT(false);
|
||||
RDCERR("Invalid shader resource type");
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2689,7 +2689,7 @@ ResourceId GLReplay::CreateProxyTexture(FetchTexture templateTex)
|
||||
}
|
||||
case eResType_Count:
|
||||
{
|
||||
RDCASSERT(false);
|
||||
RDCERR("Invalid shader resource type");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user