1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:47:35 +00:00

LibSoftGPU: Remove OpenGL type for draw buffer selection

Replaces the GLenum used in RasterizerConfig to select the draw buffer
with a simple boolean that disabled color output when the draw buffer
is set to GL_NONE on the OpenGL side.
This commit is contained in:
Stephan Unverwerth 2021-12-22 23:31:44 +01:00 committed by Brian Gianforcaro
parent 1904be0370
commit 33e601800c
3 changed files with 5 additions and 3 deletions

View file

@ -79,7 +79,7 @@ struct RasterizerOptions {
float fog_end { 1.0f };
bool scissor_enabled { false };
Gfx::IntRect scissor_box;
GLenum draw_buffer { GL_BACK };
bool enable_color_write { true };
float depth_offset_factor { 0 };
float depth_offset_constant { 0 };
bool enable_culling { false };