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();
 | 
							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…
	
	Add table
		Add a link
		
	
		Reference in a new issue