mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:32:45 +00:00 
			
		
		
		
	LibGL: Support local viewer light model
We already had the implementation, but we were erroneously rejecting `GL_LIGHT_MODEL_LOCAL_VIEWER` as a parameter to `glLightModel`.
This commit is contained in:
		
							parent
							
								
									c91e86e020
								
							
						
					
					
						commit
						53edb41d40
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -2787,8 +2787,9 @@ void SoftwareGLContext::gl_light_model(GLenum pname, GLfloat x, GLfloat y, GLflo | |||
| { | ||||
|     APPEND_TO_CALL_LIST_AND_RETURN_IF_NEEDED(gl_light_model, pname, x, y, z, w); | ||||
| 
 | ||||
|     RETURN_WITH_ERROR_IF(!(pname == GL_LIGHT_MODEL_AMBIENT | ||||
|                              || pname == GL_LIGHT_MODEL_TWO_SIDE), | ||||
|     RETURN_WITH_ERROR_IF(pname != GL_LIGHT_MODEL_LOCAL_VIEWER | ||||
|             && pname != GL_LIGHT_MODEL_TWO_SIDE | ||||
|             && pname != GL_LIGHT_MODEL_AMBIENT, | ||||
|         GL_INVALID_ENUM); | ||||
| 
 | ||||
|     auto lighting_params = m_rasterizer.light_model(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jelle Raaijmakers
						Jelle Raaijmakers