mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 04:30:05 +00:00 
			
		
		
		
	Buffer new icons when placefile changes
This commit is contained in:
		
							parent
							
								
									c85e4cef58
								
							
						
					
					
						commit
						ddf11884a8
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		|  | @ -433,7 +433,7 @@ void PlacefileIcons::Impl::UpdateBuffers() | |||
| void PlacefileIcons::Impl::Update(bool textureAtlasChanged) | ||||
| { | ||||
|    // If the texture atlas has changed
 | ||||
|    if (textureAtlasChanged) | ||||
|    if (dirty_ || textureAtlasChanged) | ||||
|    { | ||||
|       // Update texture coordinates
 | ||||
|       for (auto& iconFile : currentIconFiles_) | ||||
|  | @ -443,10 +443,7 @@ void PlacefileIcons::Impl::Update(bool textureAtlasChanged) | |||
| 
 | ||||
|       // Update OpenGL buffer data
 | ||||
|       UpdateBuffers(); | ||||
|    } | ||||
| 
 | ||||
|    if (dirty_) | ||||
|    { | ||||
|       gl::OpenGLFunctions& gl = context_->gl(); | ||||
| 
 | ||||
|       // Buffer vertex data
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat