mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 18:35:07 +00:00
LibGL: Report unsupported capabilities in glEnable
and glDisable
This commit is contained in:
parent
c03b21f0ea
commit
8c28d167c9
1 changed files with 2 additions and 0 deletions
|
@ -723,6 +723,7 @@ void SoftwareGLContext::gl_enable(GLenum capability)
|
||||||
m_texcoord_generation_dirty = true;
|
m_texcoord_generation_dirty = true;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
dbgln_if(GL_DEBUG, "gl_enable({:#x}): unknown parameter", capability);
|
||||||
RETURN_WITH_ERROR_IF(true, GL_INVALID_ENUM);
|
RETURN_WITH_ERROR_IF(true, GL_INVALID_ENUM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -819,6 +820,7 @@ void SoftwareGLContext::gl_disable(GLenum capability)
|
||||||
m_texcoord_generation_dirty = true;
|
m_texcoord_generation_dirty = true;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
dbgln_if(GL_DEBUG, "gl_disable({:#x}): unknown parameter", capability);
|
||||||
RETURN_WITH_ERROR_IF(true, GL_INVALID_ENUM);
|
RETURN_WITH_ERROR_IF(true, GL_INVALID_ENUM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue