LibGL: Report unsupported capabilities in glEnable and glDisable

This commit is contained in:
Jelle Raaijmakers 2022-01-13 03:00:26 +01:00 committed by Andreas Kling
parent c03b21f0ea
commit 8c28d167c9
Notes: sideshowbarker 2024-07-17 20:59:51 +09:00

View file

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