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:
parent
da57563c1c
commit
d6e8634576
2 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue