1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:57:45 +00:00

LibGL: Add glBlendFunc() and glShadeModel() to call lists

This commit is contained in:
Stephan Unverwerth 2021-05-16 14:42:08 +02:00 committed by Andreas Kling
parent da57563c1c
commit d6e8634576
2 changed files with 7 additions and 1 deletions

View file

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