LibGL: Implement glDepthMask

This commit is contained in:
Stephan Unverwerth 2021-08-13 01:06:26 +02:00 committed by Andreas Kling
parent 010e344a8e
commit 5f863016ca
Notes: sideshowbarker 2024-07-18 06:58:03 +09:00
7 changed files with 26 additions and 2 deletions

View file

@ -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++;
}
}