summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/SoftwareGLContext.h
diff options
context:
space:
mode:
authorJesse Buhagiar <jooster669@gmail.com>2022-01-07 22:32:32 +1100
committerLinus Groh <mail@linusgroh.de>2022-01-12 13:36:56 +0100
commit192befa84bbe1885957ecd22bc6309f8b008bead (patch)
treedfee40064a938e340ea19ff1f5ed18d12c1599dc /Userland/Libraries/LibGL/SoftwareGLContext.h
parent9ec2b379a42bf9869ec8ddfc5ef6c9443440a006 (diff)
downloadserenity-192befa84bbe1885957ecd22bc6309f8b008bead.zip
LibGL+LibSoftGPU: Add `GL_MAX_LIGHTS` to get_context_parameter
This is required to allow lighting to work properly in the GL. We currently have the maximum number of lights in the software GL context set to 8, as this is the minimum that OpenGL mandates according to the spec.
Diffstat (limited to 'Userland/Libraries/LibGL/SoftwareGLContext.h')
-rw-r--r--Userland/Libraries/LibGL/SoftwareGLContext.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/SoftwareGLContext.h b/Userland/Libraries/LibGL/SoftwareGLContext.h
index 7f153c617c..4248743b67 100644
--- a/Userland/Libraries/LibGL/SoftwareGLContext.h
+++ b/Userland/Libraries/LibGL/SoftwareGLContext.h
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
+ * Copyright (c) 2021-2022, Jesse Buhagiar <jooster669@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/