summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/SoftwareGLContext.h
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-12-29 23:57:29 +0100
committerAndreas Kling <kling@serenityos.org>2021-12-30 14:24:29 +0100
commit9bc8587c0d992699ad2360ef12c71a4175b79f47 (patch)
treecbe643c43e8c55e32a931fa4bb3fb446713a23e1 /Userland/Libraries/LibGL/SoftwareGLContext.h
parent5e01ca29c5430fdc64ed5ba1d087ea8fd83b5cf7 (diff)
downloadserenity-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.h5
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>;