Fix minor GPU timer query issue

This commit is contained in:
Jonas Kulla 2013-10-01 12:05:58 +02:00
parent 088f0a2a30
commit baff4e362e
1 changed files with 2 additions and 2 deletions

View File

@ -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;