mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 04:50:11 +01:00
state_tracker: set PrimitiveRestartInSoftware if needed
If the PIPE_CAP_PRIMITIVE_RESTART screen param is not set, then enable PrimitiveRestartInSoftware to enable software primitive restart support in the VBO module. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
862667b6d9
commit
f16b39f05c
1 changed files with 1 additions and 0 deletions
|
|
@ -602,6 +602,7 @@ void st_init_extensions(struct st_context *st)
|
|||
ctx->Extensions.NV_primitive_restart = GL_TRUE;
|
||||
if (!screen->get_param(screen, PIPE_CAP_PRIMITIVE_RESTART)) {
|
||||
st->sw_primitive_restart = GL_TRUE;
|
||||
ctx->Const.PrimitiveRestartInSoftware = GL_TRUE;
|
||||
}
|
||||
|
||||
if (screen->get_param(screen, PIPE_CAP_VERTEX_COLOR_UNCLAMPED)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue