mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-30 23:50:05 +00:00 
			
		
		
		
	Texture atlas should fill unused pixels with magenta
This commit is contained in:
		
							parent
							
								
									fb37139073
								
							
						
					
					
						commit
						d3f7347be0
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -131,6 +131,8 @@ void TextureAtlas::BuildAtlas(size_t width, size_t height) | ||||||
|    // Clear atlas
 |    // Clear atlas
 | ||||||
|    p->atlas_.recreate(width, height); |    p->atlas_.recreate(width, height); | ||||||
|    boost::gil::rgba8_view_t atlasView = boost::gil::view(p->atlas_); |    boost::gil::rgba8_view_t atlasView = boost::gil::view(p->atlas_); | ||||||
|  |    boost::gil::fill_pixels(atlasView, | ||||||
|  |                            boost::gil::rgba8_pixel_t {255, 0, 255, 255}); | ||||||
| 
 | 
 | ||||||
|    // Populate atlas
 |    // Populate atlas
 | ||||||
|    logger_->trace("Populating atlas"); |    logger_->trace("Populating atlas"); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat