mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
LibGL: Add stub glClipPlane
This commit is contained in:
parent
c9f44c746a
commit
b928fdc3ee
4 changed files with 27 additions and 1 deletions
|
@ -1936,6 +1936,16 @@ void GLContext::gl_depth_mask(GLboolean flag)
|
|||
m_rasterizer->set_options(options);
|
||||
}
|
||||
|
||||
void GLContext::gl_clip_plane(GLenum plane, [[maybe_unused]] GLdouble const* equation)
|
||||
{
|
||||
APPEND_TO_CALL_LIST_AND_RETURN_IF_NEEDED(gl_clip_plane, plane, equation);
|
||||
|
||||
RETURN_WITH_ERROR_IF(m_in_draw_state, GL_INVALID_OPERATION);
|
||||
RETURN_WITH_ERROR_IF((plane < GL_CLIP_PLANE0) || (plane > GL_CLIP_PLANE5), GL_INVALID_ENUM);
|
||||
|
||||
dbgln_if(GL_DEBUG, "GLContext FIXME: implement gl_clip_plane() (equation = [{} {} {} {}])", equation[0], equation[1], equation[2], equation[3]);
|
||||
}
|
||||
|
||||
void GLContext::gl_enable_client_state(GLenum cap)
|
||||
{
|
||||
RETURN_WITH_ERROR_IF(m_in_draw_state, GL_INVALID_OPERATION);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue