mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 07:10: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) | void PlacefileIcons::Impl::Update(bool textureAtlasChanged) | ||||||
| { | { | ||||||
|    // If the texture atlas has changed
 |    // If the texture atlas has changed
 | ||||||
|    if (textureAtlasChanged) |    if (dirty_ || textureAtlasChanged) | ||||||
|    { |    { | ||||||
|       // Update texture coordinates
 |       // Update texture coordinates
 | ||||||
|       for (auto& iconFile : currentIconFiles_) |       for (auto& iconFile : currentIconFiles_) | ||||||
|  | @ -443,10 +443,7 @@ void PlacefileIcons::Impl::Update(bool textureAtlasChanged) | ||||||
| 
 | 
 | ||||||
|       // Update OpenGL buffer data
 |       // Update OpenGL buffer data
 | ||||||
|       UpdateBuffers(); |       UpdateBuffers(); | ||||||
|    } |  | ||||||
| 
 | 
 | ||||||
|    if (dirty_) |  | ||||||
|    { |  | ||||||
|       gl::OpenGLFunctions& gl = context_->gl(); |       gl::OpenGLFunctions& gl = context_->gl(); | ||||||
| 
 | 
 | ||||||
|       // Buffer vertex data
 |       // Buffer vertex data
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat