diff options
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/arrayobj.c | 1 | ||||
-rw-r--r-- | src/mesa/main/attrib.c | 1 | ||||
-rw-r--r-- | src/mesa/main/mtypes.h | 6 | ||||
-rw-r--r-- | src/mesa/main/varray.h | 14 |
4 files changed, 0 insertions, 22 deletions
diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c index 05af50ef400..5ee68cf9e94 100644 --- a/src/mesa/main/arrayobj.c +++ b/src/mesa/main/arrayobj.c @@ -970,7 +970,6 @@ bind_vertex_array(struct gl_context *ctx, GLuint id, bool no_error) * or to prevent a crash if the VAO being unbound is going to be * deleted. */ - _mesa_set_drawing_arrays(ctx, NULL); _mesa_set_draw_vao(ctx, ctx->Array._EmptyVAO, 0); ctx->NewState |= _NEW_ARRAY; diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index e565750a891..cbe93ab6faa 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -1588,7 +1588,6 @@ copy_array_attrib(struct gl_context *ctx, /* skip IndexBufferObj */ /* Invalidate array state. It will be updated during the next draw. */ - _mesa_set_drawing_arrays(ctx, NULL); _mesa_set_draw_vao(ctx, ctx->Array._EmptyVAO, 0); } diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index e7517043864..0b55a510b08 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1629,12 +1629,6 @@ struct gl_array_attrib */ struct gl_vertex_array_object *_EmptyVAO; - /** - * Vertex arrays as consumed by a driver. - * The array pointer is set up only by the VBO module. - */ - const struct gl_vertex_array *_DrawArrays; /**< 0..VERT_ATTRIB_MAX-1 */ - /** Legal array datatypes and the API for which they have been computed */ GLbitfield LegalTypesMask; gl_api LegalTypesMaskAPI; diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h index 25d2a29e731..6ab55ed36ae 100644 --- a/src/mesa/main/varray.h +++ b/src/mesa/main/varray.h @@ -53,20 +53,6 @@ _mesa_attr_zero_aliases_vertex(const struct gl_context *ctx) } -/** - * This specifies the set of vertex arrays used by the driver for drawing. - */ -static inline void -_mesa_set_drawing_arrays(struct gl_context *ctx, - const struct gl_vertex_array *arrays) -{ - if (ctx->Array._DrawArrays != arrays) { - ctx->Array._DrawArrays = arrays; - ctx->NewDriverState |= ctx->DriverFlags.NewArray; - } -} - - extern void _mesa_update_array_format(struct gl_context *ctx, struct gl_vertex_array_object *vao, |