|
|
@ -3043,7 +3043,9 @@ void vrend_draw_vbo(struct vrend_context *ctx, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (info->primitive_restart) { |
|
|
|
if (info->primitive_restart) { |
|
|
|
if (vrend_state.have_nv_prim_restart) { |
|
|
|
if (vrend_state.use_gles) { |
|
|
|
|
|
|
|
glEnable(GL_PRIMITIVE_RESTART_FIXED_INDEX); |
|
|
|
|
|
|
|
} else if (vrend_state.have_nv_prim_restart) { |
|
|
|
glEnableClientState(GL_PRIMITIVE_RESTART_NV); |
|
|
|
glEnableClientState(GL_PRIMITIVE_RESTART_NV); |
|
|
|
glPrimitiveRestartIndexNV(info->restart_index); |
|
|
|
glPrimitiveRestartIndexNV(info->restart_index); |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -3105,11 +3107,14 @@ void vrend_draw_vbo(struct vrend_context *ctx, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (info->primitive_restart) { |
|
|
|
if (info->primitive_restart) { |
|
|
|
if (vrend_state.have_nv_prim_restart) |
|
|
|
if (vrend_state.use_gles) { |
|
|
|
|
|
|
|
glEnable(GL_PRIMITIVE_RESTART_FIXED_INDEX); |
|
|
|
|
|
|
|
} else if (vrend_state.have_nv_prim_restart) { |
|
|
|
glDisableClientState(GL_PRIMITIVE_RESTART_NV); |
|
|
|
glDisableClientState(GL_PRIMITIVE_RESTART_NV); |
|
|
|
else if (vrend_state.have_gl_prim_restart) |
|
|
|
} else if (vrend_state.have_gl_prim_restart) { |
|
|
|
glDisable(GL_PRIMITIVE_RESTART); |
|
|
|
glDisable(GL_PRIMITIVE_RESTART); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (ctx->sub->current_so && vrend_state.have_tf2) { |
|
|
|
if (ctx->sub->current_so && vrend_state.have_tf2) { |
|
|
|
if (ctx->sub->current_so->xfb_state == XFB_STATE_STARTED) { |
|
|
|
if (ctx->sub->current_so->xfb_state == XFB_STATE_STARTED) { |
|
|
|