mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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
|
@ -1392,6 +1392,17 @@ void SoftwareGLContext::gl_get_floatv(GLenum pname, GLfloat* params)
|
|||
}
|
||||
}
|
||||
|
||||
void SoftwareGLContext::gl_depth_mask(GLboolean flag)
|
||||
{
|
||||
APPEND_TO_CALL_LIST_AND_RETURN_IF_NEEDED(gl_depth_mask, flag);
|
||||
|
||||
RETURN_WITH_ERROR_IF(m_in_draw_state, GL_INVALID_OPERATION);
|
||||
|
||||
auto options = m_rasterizer.options();
|
||||
options.enable_depth_write = (flag != GL_FALSE);
|
||||
m_rasterizer.set_options(options);
|
||||
}
|
||||
|
||||
void SoftwareGLContext::present()
|
||||
{
|
||||
m_rasterizer.blit_to(*m_frontbuffer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue