1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:17:44 +00:00

LibGL: Implement glDrawBuffer

This commit is contained in:
Stephan Unverwerth 2021-08-31 20:23:29 +02:00 committed by Ali Mohammad Pur
parent b069c1306c
commit 7cbaaf8366
7 changed files with 52 additions and 1 deletions

View file

@ -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