mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibGL: Report unsupported capabilities in glEnable
and glDisable
This commit is contained in:
parent
c03b21f0ea
commit
8c28d167c9
Notes:
sideshowbarker
2024-07-17 20:59:51 +09:00
Author: https://github.com/gmta
Commit: 8c28d167c9
Pull-request: https://github.com/SerenityOS/serenity/pull/11851
Reviewed-by: https://github.com/Quaker762 ✅
Reviewed-by: https://github.com/sunverwerth ✅
1 changed files with 2 additions and 0 deletions
|
@ -723,6 +723,7 @@ void SoftwareGLContext::gl_enable(GLenum capability)
|
|||
m_texcoord_generation_dirty = true;
|
||||
break;
|
||||
default:
|
||||
dbgln_if(GL_DEBUG, "gl_enable({:#x}): unknown parameter", capability);
|
||||
RETURN_WITH_ERROR_IF(true, GL_INVALID_ENUM);
|
||||
}
|
||||
|
||||
|
@ -819,6 +820,7 @@ void SoftwareGLContext::gl_disable(GLenum capability)
|
|||
m_texcoord_generation_dirty = true;
|
||||
break;
|
||||
default:
|
||||
dbgln_if(GL_DEBUG, "gl_disable({:#x}): unknown parameter", capability);
|
||||
RETURN_WITH_ERROR_IF(true, GL_INVALID_ENUM);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue