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();
|
queries[ind].end();
|
||||||
|
|
||||||
|
swapInd();
|
||||||
|
|
||||||
if (first)
|
if (first)
|
||||||
{
|
{
|
||||||
first = false;
|
first = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
swapInd();
|
|
||||||
|
|
||||||
GLuint64 result;
|
GLuint64 result;
|
||||||
if (!queries[ind].getResult(&result))
|
if (!queries[ind].getResult(&result))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue