summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/glx/indirect_vertex_array.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/glx/indirect_vertex_array.c b/src/glx/indirect_vertex_array.c
index 0374093b0ec..a7073433a5f 100644
--- a/src/glx/indirect_vertex_array.c
+++ b/src/glx/indirect_vertex_array.c
@@ -151,6 +151,7 @@ __glXInitVertexArrayState(struct glx_context * gc)
arrays = calloc(1, sizeof(struct array_state_vector));
+ state->array_state = arrays;
if (arrays == NULL) {
__glXSetError(gc, GL_OUT_OF_MEMORY);
@@ -299,11 +300,6 @@ __glXInitVertexArrayState(struct glx_context * gc)
__glXSetError(gc, GL_OUT_OF_MEMORY);
return;
}
-
- /* Everything went ok so we put vertex array state in place
- * in context.
- */
- state->array_state = arrays;
}