Fix minor GPU timer query issue
This commit is contained in:
parent
088f0a2a30
commit
baff4e362e
|
@ -113,14 +113,14 @@ struct GPUTimerGLQuery : public PerfTimer
|
|||
{
|
||||
queries[ind].end();
|
||||
|
||||
swapInd();
|
||||
|
||||
if (first)
|
||||
{
|
||||
first = false;
|
||||
return;
|
||||
}
|
||||
|
||||
swapInd();
|
||||
|
||||
GLuint64 result;
|
||||
if (!queries[ind].getResult(&result))
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue