mesa: fix call to _mesa_lookup_vao_err
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 5 Nov 2019 17:35:01 +0000 (18:35 +0100)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 5 Nov 2019 20:05:33 +0000 (12:05 -0800)
Fixes: 3e842a0b0ea ("mesa: rework _mesa_lookup_vao_err to allow usage from EXT_dsa")
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2055
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/varray.c

index ded559394dcbed1e8c04e44f73ec4d389a7c94c7..17d5288b6f2f1f1b0975c390ffc5001b37cc49ef 100644 (file)
@@ -3017,7 +3017,7 @@ vertex_array_attrib_format(GLuint vaobj, GLuint attribIndex, GLint size,
        *   VertexArrayAttrib*Format if <vaobj> is not [compatibility profile:
        *   zero or] the name of an existing vertex array object."
        */
-      vao = _mesa_lookup_vao_err(ctx, false, vaobj, func);
+      vao = _mesa_lookup_vao_err(ctx, vaobj, false, func);
       if (!vao)
          return;