gallium: remove pipe_index_buffer and set_index_buffer
[mesa.git] / src / gallium / drivers / swr / swr_draw.cpp
index de78cf34750df50f0491fb471caef771ca41abac..03c82a7e510577c5764705b261a0a756a21e5f1b 100644 (file)
@@ -167,7 +167,7 @@ swr_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info)
    feState.bEnableCutIndex = info->primitive_restart;
    SwrSetFrontendState(ctx->swrContext, &feState);
 
-   if (info->indexed)
+   if (info->index_size)
       SwrDrawIndexedInstanced(ctx->swrContext,
                               swr_convert_prim_topology(info->mode),
                               info->count,