state_tracker: remove sw_primitive_restart from st_context
authorJordan Justen <jordan.l.justen@intel.com>
Mon, 7 May 2012 23:17:31 +0000 (16:17 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 17 May 2012 17:54:26 +0000 (10:54 -0700)
The VBO module now can handle primitive restart in software
if required.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/state_tracker/st_context.h
src/mesa/state_tracker/st_extensions.c

index 00a405b69f9828dda9c2e368e54d90a05e5ef7cf..55ae65b3c4983d7fc91d6bd66f3650ab5147775d 100644 (file)
@@ -79,7 +79,6 @@ struct st_context
    struct draw_stage *feedback_stage;  /**< For GL_FEEDBACK rendermode */
    struct draw_stage *selection_stage;  /**< For GL_SELECT rendermode */
    struct draw_stage *rastpos_stage;  /**< For glRasterPos */
-   GLboolean sw_primitive_restart;
    GLboolean clamp_frag_color_in_shader;
    GLboolean clamp_vert_color_in_shader;
 
index d0f392be44a31e199c82576786663a49d46f1012..953155f364be260160fde658f00345efc92b5e45 100644 (file)
@@ -601,7 +601,6 @@ 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;
    }