mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 15:30:04 +00:00 
			
		
		
		
	macOS does not populate the the OpenGL 3.0 compatibility functions
This commit is contained in:
		
							parent
							
								
									ec06cc62e1
								
							
						
					
					
						commit
						e51fd8b77b
					
				
					 5 changed files with 26 additions and 0 deletions
				
			
		|  | @ -140,7 +140,10 @@ void PlacefileImages::set_thresholded(bool thresholded) | |||
| void PlacefileImages::Initialize() | ||||
| { | ||||
|    gl::OpenGLFunctions& gl   = p->context_->gl(); | ||||
| 
 | ||||
| #if !defined(__APPLE__) | ||||
|    auto&                gl30 = p->context_->gl30(); | ||||
| #endif | ||||
| 
 | ||||
|    p->shaderProgram_ = p->context_->GetShaderProgram( | ||||
|       {{GL_VERTEX_SHADER, ":/gl/geo_texture2d.vert"}, | ||||
|  | @ -222,7 +225,11 @@ void PlacefileImages::Initialize() | |||
|    gl.glEnableVertexAttribArray(6); | ||||
| 
 | ||||
|    // aDisplayed
 | ||||
| #if !defined(__APPLE__) | ||||
|    gl30.glVertexAttribI1i(7, 1); | ||||
| #else | ||||
|    glVertexAttribI1i(7, 1); | ||||
| #endif | ||||
| 
 | ||||
|    p->dirty_ = true; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat