mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibGL: Implement glDrawBuffer
This commit is contained in:
parent
b069c1306c
commit
7cbaaf8366
Notes:
sideshowbarker
2024-07-18 04:54:15 +09:00
Author: https://github.com/sunverwerth
Commit: 7cbaaf8366
Pull-request: https://github.com/SerenityOS/serenity/pull/9713
Reviewed-by: https://github.com/Quaker762 ✅
7 changed files with 52 additions and 1 deletions
|
@ -334,7 +334,7 @@ static void rasterize_triangle(const RasterizerOptions& options, Gfx::Bitmap& re
|
|||
}
|
||||
|
||||
// We will not update the color buffer at all
|
||||
if (!options.color_mask)
|
||||
if (!options.color_mask || options.draw_buffer == GL_NONE)
|
||||
continue;
|
||||
|
||||
// Draw the pixels according to the previously generated mask
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue