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:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user