projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mesa: Move _mesa_all_buffers_are_unmapped to arrayobj.c.
[mesa.git]
/
src
/
mesa
/
main
/
compute.c
diff --git
a/src/mesa/main/compute.c
b/src/mesa/main/compute.c
index 53e7a500f6136c51b74dbfd517111be8b134ef9c..b71430f2b12ac150a9cc79f6f4c915964eb77f95 100644
(file)
--- 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);
}