diff options
Diffstat (limited to 'src/mesa/main/compute.c')
-rw-r--r-- | src/mesa/main/compute.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/main/compute.c b/src/mesa/main/compute.c index f67ffbb6bfa..a0120cf0c64 100644 --- a/src/mesa/main/compute.c +++ b/src/mesa/main/compute.c @@ -45,10 +45,8 @@ _mesa_DispatchComputeIndirect(GLintptr indirect) { GET_CURRENT_CONTEXT(ctx); - if (ctx->Extensions.ARB_compute_shader) { - assert(!"TODO"); - } else { - _mesa_error(ctx, GL_INVALID_OPERATION, - "unsupported function (glDispatchComputeIndirect) called"); - } + if (!_mesa_validate_DispatchComputeIndirect(ctx, indirect)) + return; + + ctx->Driver.DispatchComputeIndirect(ctx, indirect); } |