mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 08:30:04 +00:00 
			
		
		
		
	In the shader used by GeoLines, aDisplayed is an integer, not a float
This commit is contained in:
		
							parent
							
								
									bef8628bb6
								
							
						
					
					
						commit
						9a171464ff
					
				
					 1 changed files with 5 additions and 6 deletions
				
			
		|  | @ -230,12 +230,11 @@ void GeoLines::Initialize() | |||
|    gl.glEnableVertexAttribArray(6); | ||||
| 
 | ||||
|    // aDisplayed
 | ||||
|    gl.glVertexAttribPointer(7, | ||||
|                             1, | ||||
|                             GL_INT, | ||||
|                             GL_FALSE, | ||||
|                             kIntegersPerVertex_ * sizeof(GLint), | ||||
|                             reinterpret_cast<void*>(3 * sizeof(float))); | ||||
|    gl.glVertexAttribIPointer(7, | ||||
|                              1, | ||||
|                              GL_INT, | ||||
|                              kIntegersPerVertex_ * sizeof(GLint), | ||||
|                              reinterpret_cast<void*>(3 * sizeof(GLint))); | ||||
|    gl.glEnableVertexAttribArray(7); | ||||
| 
 | ||||
|    p->dirty_ = true; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat