mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:37:44 +00:00
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.
This commit is contained in:
parent
9ec2b379a4
commit
192befa84b
5 changed files with 7 additions and 1 deletions
|
@ -17,6 +17,7 @@ namespace SoftGPU {
|
|||
static constexpr bool ENABLE_STATISTICS_OVERLAY = false;
|
||||
static constexpr int NUM_SAMPLERS = 32;
|
||||
static constexpr int SUBPIXEL_BITS = 5;
|
||||
static constexpr int NUM_LIGHTS = 8;
|
||||
|
||||
// See: https://www.khronos.org/opengl/wiki/Common_Mistakes#Texture_edge_color_problem
|
||||
// FIXME: make this dynamically configurable through ConfigServer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue