summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/compute.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/compute.c b/src/mesa/main/compute.c
index 53e7a500f61..b71430f2b12 100644
--- a/src/mesa/main/compute.c
+++ b/src/mesa/main/compute.c
@@ -41,6 +41,9 @@ _mesa_DispatchCompute(GLuint num_groups_x,
if (!_mesa_validate_DispatchCompute(ctx, num_groups))
return;
+ if (num_groups_x == 0u || num_groups_y == 0u || num_groups_z == 0u)
+ return;
+
ctx->Driver.DispatchCompute(ctx, num_groups);
}