Fix 'conditional expression is constant' errors with RDCASSERT(false)

This commit is contained in:
baldurk
2016-04-14 00:34:55 +02:00
parent 8821ce3778
commit 9b853f86f0
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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;
}
+2 -2
View File
@@ -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;
}
}