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
commit 33e601800c
Notes: sideshowbarker 2024-07-17 22:15:21 +09:00
3 changed files with 5 additions and 3 deletions

View file

@ -348,7 +348,7 @@ static void rasterize_triangle(const RasterizerOptions& options, Gfx::Bitmap& re
}
// We will not update the color buffer at all
if (!options.color_mask || options.draw_buffer == GL_NONE)
if (!options.color_mask || !options.enable_color_write)
continue;
// Draw the pixels according to the previously generated mask