mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 13:50:25 +01:00
mesa: generate GL_INVALID_OPERATION in glIsEnabledIndex() between Begin/End
This commit is contained in:
parent
57b8f13aa4
commit
386ec5e80e
1 changed files with 1 additions and 0 deletions
|
|
@ -1016,6 +1016,7 @@ GLboolean GLAPIENTRY
|
|||
_mesa_IsEnabledIndexed( GLenum cap, GLuint index )
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, 0);
|
||||
switch (cap) {
|
||||
case GL_BLEND:
|
||||
if (index >= ctx->Const.MaxDrawBuffers) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue