Fix minor GPU timer query issue
This commit is contained in:
		
							parent
							
								
									088f0a2a30
								
							
						
					
					
						commit
						baff4e362e
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue