egl/x11_dri3: implement EGL_KHR_swap_buffers_with_damage
[mesa.git] / src / glx / indirect_vertex_array.c
index a7073433a5f95253e957d9de4540aab4b23dea1c..fb4ac4d05de42e4d095c1cc019c8f79bfc475ef9 100644 (file)
@@ -207,6 +207,7 @@ __glXInitVertexArrayState(struct glx_context * gc)
    arrays->arrays = calloc(array_count, sizeof(struct array_state));
 
    if (arrays->arrays == NULL) {
+      state->array_state = NULL;
       free(arrays);
       __glXSetError(gc, GL_OUT_OF_MEMORY);
       return;
@@ -295,6 +296,7 @@ __glXInitVertexArrayState(struct glx_context * gc)
                           * __GL_CLIENT_ATTRIB_STACK_DEPTH);
 
    if (arrays->stack == NULL) {
+      state->array_state = NULL;
       free(arrays->arrays);
       free(arrays);
       __glXSetError(gc, GL_OUT_OF_MEMORY);
@@ -1747,7 +1749,7 @@ __indirect_glVertexAttribPointerNV(GLuint index, GLint size,
          return;
       }
       normalized = GL_TRUE;
-
+      /* fallthrough */
    case GL_SHORT:
    case GL_FLOAT:
    case GL_DOUBLE: