Only print nvapi disabled warnings a few times before silencing

This commit is contained in:
baldurk committed 2019-02-27 20:49:20 +00:00
1 parent 2cda7f8af0
commit d80c5973dd
1 file changed
+4 -1
+4 -1
View File
@@ -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;
}
}