Remove 'magic constant' use of ~0U as invalid/skip/no result.

* In python it's not as quick to get ~0U since ints aren't unsigned or
  fixed size. Adding named constants makes it easier for people to use
  the right values, and C++ users can still pass ~0U.
This commit is contained in:
baldurk committed 2017-04-18 14:57:47 +01:00
1 parent f6c045f473
commit 43eb5072b4
8 files changed
+77 -17

No files matched your search

+1 -1
View File
@@ -280,7 +280,7 @@ namespace renderdoc
nextIdent = RENDERDOC_EnumerateRemoteTargets(host_mem, nextIdent);
if (nextIdent == UInt32.MaxValue || prevIdent >= nextIdent)
if (nextIdent == 0 || prevIdent >= nextIdent)
break;
callback(nextIdent);