mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-30 23:40:06 +00:00 
			
		
		
		
	Default geo_texture2d displayed parameter to true when not used
This commit is contained in:
		
							parent
							
								
									f4bc2572d2
								
							
						
					
					
						commit
						15beb9436d
					
				
					 7 changed files with 42 additions and 7 deletions
				
			
		|  | @ -161,7 +161,8 @@ void PlacefileIcons::set_thresholded(bool thresholded) | |||
| 
 | ||||
| void PlacefileIcons::Initialize() | ||||
| { | ||||
|    gl::OpenGLFunctions& gl = p->context_->gl(); | ||||
|    gl::OpenGLFunctions& gl   = p->context_->gl(); | ||||
|    auto&                gl30 = p->context_->gl30(); | ||||
| 
 | ||||
|    p->shaderProgram_ = p->context_->GetShaderProgram( | ||||
|       {{GL_VERTEX_SHADER, ":/gl/geo_texture2d.vert"}, | ||||
|  | @ -251,6 +252,9 @@ void PlacefileIcons::Initialize() | |||
|                              reinterpret_cast<void*>(1 * sizeof(GLint))); | ||||
|    gl.glEnableVertexAttribArray(6); | ||||
| 
 | ||||
|    // aDisplayed
 | ||||
|    gl30.glVertexAttribI1i(7, 1); | ||||
| 
 | ||||
|    p->dirty_ = true; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat