mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Only print nvapi disabled warnings a few times before silencing
This commit is contained in:
@@ -423,7 +423,10 @@ private:
|
||||
}
|
||||
else
|
||||
{
|
||||
RDCWARN("NvAPI disabled: Returning NULL for nvapi_QueryInterface(%x)", ID);
|
||||
static int count = 0;
|
||||
if(count < 10)
|
||||
RDCWARN("NvAPI disabled: Returning NULL for nvapi_QueryInterface(%x)", ID);
|
||||
count++;
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user