diff options
Diffstat (limited to 'Userland/Libraries/LibGL/GLContext.cpp')
-rw-r--r-- | Userland/Libraries/LibGL/GLContext.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GLContext.cpp b/Userland/Libraries/LibGL/GLContext.cpp index c34b167ac5..1d48651fbc 100644 --- a/Userland/Libraries/LibGL/GLContext.cpp +++ b/Userland/Libraries/LibGL/GLContext.cpp @@ -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); |