mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-05 09:52:54 +00:00
LibGL: Implement glDepthMask
This commit is contained in:
parent
010e344a8e
commit
5f863016ca
Notes:
sideshowbarker
2024-07-18 06:58:03 +09:00
Author: https://github.com/sunverwerth
Commit: 5f863016ca
Pull-request: https://github.com/SerenityOS/serenity/pull/9382
Reviewed-by: https://github.com/alimpfard
7 changed files with 26 additions and 2 deletions
|
@ -265,7 +265,9 @@ static void rasterize_triangle(const RasterizerOptions& options, Gfx::Bitmap& re
|
|||
continue;
|
||||
}
|
||||
|
||||
*depth = z;
|
||||
if (options.enable_depth_write)
|
||||
*depth = z;
|
||||
|
||||
z_pass_count++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue