vbo: fix ARB_multi_draw_indirect for the compatibility profile
authorMarek Olšák <marek.olsak@amd.com>
Tue, 17 Jul 2018 03:14:14 +0000 (23:14 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 19 Jul 2018 04:58:51 +0000 (00:58 -0400)
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/vbo/vbo_exec_array.c

index 58bba208db10d79a63cc06fb23cff386dcb730ba..9d3e894c16435f4e952bba0104e39e34694da6fb 100644 (file)
@@ -2081,8 +2081,6 @@ vbo_initialize_exec_dispatch(const struct gl_context *ctx,
    }
 
    if (ctx->API == API_OPENGL_CORE) {
-      SET_MultiDrawArraysIndirect(exec, vbo_exec_MultiDrawArraysIndirect);
-      SET_MultiDrawElementsIndirect(exec, vbo_exec_MultiDrawElementsIndirect);
       SET_MultiDrawArraysIndirectCountARB(exec,
                                           vbo_exec_MultiDrawArraysIndirectCount);
       SET_MultiDrawElementsIndirectCountARB(exec,
@@ -2102,6 +2100,8 @@ vbo_initialize_exec_dispatch(const struct gl_context *ctx,
                                          vbo_exec_DrawTransformFeedbackInstanced);
       SET_DrawTransformFeedbackStreamInstanced(exec,
                                                vbo_exec_DrawTransformFeedbackStreamInstanced);
+      SET_MultiDrawArraysIndirect(exec, vbo_exec_MultiDrawArraysIndirect);
+      SET_MultiDrawElementsIndirect(exec, vbo_exec_MultiDrawElementsIndirect);
    }
 }