diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2022-03-23 11:07:39 +0100 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-03-27 09:19:43 -0700 |
commit | 284a629ab4eba46af4880c3174a212bcc59a6be9 (patch) | |
tree | 02e5673383e534678f485e28f5726725f1cd5465 /Userland/Libraries/LibSoftGPU/Device.cpp | |
parent | 4b6b9f272f83d5932e9dca771d54e6ab5252b758 (diff) | |
download | serenity-284a629ab4eba46af4880c3174a212bcc59a6be9.zip |
LibGL+LibSoftGPU: Implement more of `GL_LIGHT_MODEL_COLOR_CONTROL`
This gets rid of a place where OpenGL was leaking into LibSoftGPU.
Diffstat (limited to 'Userland/Libraries/LibSoftGPU/Device.cpp')
-rw-r--r-- | Userland/Libraries/LibSoftGPU/Device.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibSoftGPU/Device.cpp b/Userland/Libraries/LibSoftGPU/Device.cpp index 16e9bbb2e9..669d18a30f 100644 --- a/Userland/Libraries/LibSoftGPU/Device.cpp +++ b/Userland/Libraries/LibSoftGPU/Device.cpp @@ -813,7 +813,7 @@ void Device::draw_primitives(PrimitiveType primitive_type, FloatMatrix4x4 const& } // FIXME: The spec allows for splitting the colors calculated here into multiple different colors (primary/secondary color). Investigate what this means. - (void)m_lighting_model.single_color; + (void)m_lighting_model.color_control; // FIXME: Two sided lighting should be implemented eventually (I believe this is where the normals are -ve and then lighting is calculated with the BACK material) (void)m_lighting_model.two_sided_lighting; |