diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2021-12-29 23:57:29 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-30 14:24:29 +0100 |
commit | 9bc8587c0d992699ad2360ef12c71a4175b79f47 (patch) | |
tree | cbe643c43e8c55e32a931fa4bb3fb446713a23e1 /Userland/Libraries/LibGL/SoftwareGLContext.h | |
parent | 5e01ca29c5430fdc64ed5ba1d087ea8fd83b5cf7 (diff) | |
download | serenity-9bc8587c0d992699ad2360ef12c71a4175b79f47.zip |
LibGL: Implement fog in `GL_LINEAR` mode
The `GL_LINEAR` param was erroneously not picked up on. Also implement
support for `GL_FOG_START` and `GL_FOG_END`, and make sure that the
`gl_fog*` family of functions are optionally registered with the active
list.
Diffstat (limited to 'Userland/Libraries/LibGL/SoftwareGLContext.h')
-rw-r--r-- | Userland/Libraries/LibGL/SoftwareGLContext.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGL/SoftwareGLContext.h b/Userland/Libraries/LibGL/SoftwareGLContext.h index 025936c4d8..8ef1452fce 100644 --- a/Userland/Libraries/LibGL/SoftwareGLContext.h +++ b/Userland/Libraries/LibGL/SoftwareGLContext.h @@ -321,7 +321,10 @@ private: decltype(&SoftwareGLContext::gl_copy_tex_image_2d), decltype(&SoftwareGLContext::gl_rect), decltype(&SoftwareGLContext::gl_tex_gen), - decltype(&SoftwareGLContext::gl_tex_gen_floatv)>; + decltype(&SoftwareGLContext::gl_tex_gen_floatv), + decltype(&SoftwareGLContext::gl_fogf), + decltype(&SoftwareGLContext::gl_fogfv), + decltype(&SoftwareGLContext::gl_fogi)>; using ExtraSavedArguments = Variant< FloatMatrix4x4>; |