mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-16 05:51:55 +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
Notes:
sideshowbarker
2024-07-17 20:58:35 +09:00
Author: https://github.com/gmta
Commit: 53edb41d40
Pull-request: https://github.com/SerenityOS/serenity/pull/12900
Reviewed-by: https://github.com/sunverwerth ✅
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