mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:00:06 +00:00 
			
		
		
		
	Fix placefile image/icon vertex count calculation
This commit is contained in:
		
							parent
							
								
									2f41993d7b
								
							
						
					
					
						commit
						477d9309a9
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		|  | @ -675,8 +675,8 @@ void PlacefileIcons::Impl::Update(bool textureAtlasChanged) | ||||||
|                       currentIntegerBuffer_.data(), |                       currentIntegerBuffer_.data(), | ||||||
|                       GL_DYNAMIC_DRAW); |                       GL_DYNAMIC_DRAW); | ||||||
| 
 | 
 | ||||||
|       numVertices_ = static_cast<GLsizei>(currentIconBuffer_.size() / |       numVertices_ = | ||||||
|                                           kVerticesPerRectangle); |          static_cast<GLsizei>(currentIconBuffer_.size() / kPointsPerVertex); | ||||||
|    } |    } | ||||||
| 
 | 
 | ||||||
|    dirty_ = false; |    dirty_ = false; | ||||||
|  |  | ||||||
|  | @ -472,8 +472,8 @@ void PlacefileImages::Impl::Update(bool textureAtlasChanged) | ||||||
|                       currentIntegerBuffer_.data(), |                       currentIntegerBuffer_.data(), | ||||||
|                       GL_DYNAMIC_DRAW); |                       GL_DYNAMIC_DRAW); | ||||||
| 
 | 
 | ||||||
|       numVertices_ = static_cast<GLsizei>(currentImageBuffer_.size() / |       numVertices_ = | ||||||
|                                           kVerticesPerRectangle); |          static_cast<GLsizei>(currentImageBuffer_.size() / kPointsPerVertex); | ||||||
|    } |    } | ||||||
| 
 | 
 | ||||||
|    dirty_ = false; |    dirty_ = false; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat