mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 10:30:08 +01:00
mesa: reset primitive restart state in glClientAttribDefaultEXT
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4758>
This commit is contained in:
parent
ee0263e03f
commit
00b5791541
1 changed files with 9 additions and 0 deletions
|
|
@ -1926,6 +1926,15 @@ _mesa_ClientAttribDefaultEXT( GLbitfield mask )
|
|||
}
|
||||
|
||||
_mesa_ClientActiveTexture(GL_TEXTURE0);
|
||||
|
||||
_mesa_PrimitiveRestartIndex_no_error(0);
|
||||
if (ctx->Version >= 31)
|
||||
_mesa_Disable(GL_PRIMITIVE_RESTART);
|
||||
else if (_mesa_has_NV_primitive_restart(ctx))
|
||||
_mesa_DisableClientState(GL_PRIMITIVE_RESTART_NV);
|
||||
|
||||
if (_mesa_has_ARB_ES3_compatibility(ctx))
|
||||
_mesa_Disable(GL_PRIMITIVE_RESTART_FIXED_INDEX);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue