diff options
author | Stephan Unverwerth <s.unverwerth@gmx.de> | 2021-05-16 14:42:08 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-16 15:53:58 +0200 |
commit | d6e86345763766256a83ae8746fba45383a4ce95 (patch) | |
tree | 6ad2f72e0e0239e9b7d0a903860e229c7dc7e4bf /Userland/Libraries/LibGL | |
parent | da57563c1cc27790417eac55b99e0d52da8528c9 (diff) | |
download | serenity-d6e86345763766256a83ae8746fba45383a4ce95.zip |
LibGL: Add glBlendFunc() and glShadeModel() to call lists
Diffstat (limited to 'Userland/Libraries/LibGL')
-rw-r--r-- | Userland/Libraries/LibGL/SoftwareGLContext.cpp | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibGL/SoftwareGLContext.h | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGL/SoftwareGLContext.cpp b/Userland/Libraries/LibGL/SoftwareGLContext.cpp index 0df1c513ba..8e8f6e2bd2 100644 --- a/Userland/Libraries/LibGL/SoftwareGLContext.cpp +++ b/Userland/Libraries/LibGL/SoftwareGLContext.cpp @@ -871,6 +871,8 @@ void SoftwareGLContext::gl_finish() void SoftwareGLContext::gl_blend_func(GLenum src_factor, GLenum dst_factor) { + APPEND_TO_CALL_LIST_AND_RETURN_IF_NEEDED(gl_blend_func, src_factor, dst_factor); + if (m_in_draw_state) { m_error = GL_INVALID_OPERATION; return; @@ -927,6 +929,8 @@ void SoftwareGLContext::gl_blend_func(GLenum src_factor, GLenum dst_factor) void SoftwareGLContext::gl_shade_model(GLenum mode) { + APPEND_TO_CALL_LIST_AND_RETURN_IF_NEEDED(gl_shade_model, mode); + if (m_in_draw_state) { m_error = GL_INVALID_OPERATION; return; diff --git a/Userland/Libraries/LibGL/SoftwareGLContext.h b/Userland/Libraries/LibGL/SoftwareGLContext.h index a13944d390..9a1183fd80 100644 --- a/Userland/Libraries/LibGL/SoftwareGLContext.h +++ b/Userland/Libraries/LibGL/SoftwareGLContext.h @@ -162,7 +162,9 @@ private: decltype(&SoftwareGLContext::gl_disable), decltype(&SoftwareGLContext::gl_front_face), decltype(&SoftwareGLContext::gl_cull_face), - decltype(&SoftwareGLContext::gl_call_list)>; + decltype(&SoftwareGLContext::gl_call_list), + decltype(&SoftwareGLContext::gl_blend_func), + decltype(&SoftwareGLContext::gl_shade_model)>; using ExtraSavedArguments = Variant< FloatMatrix4x4>; |