summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-05-15 11:12:13 +1000
committerTimothy Arceri <[email protected]>2017-05-17 10:12:04 +1000
commitf98411eaad760ff5f02c8e332663635ac932fd39 (patch)
treec9c4dfa20bf993c2846233d000070f42fb86010b /src/mesa
parent64757e73de4355353e15706d9d25269f181eb775 (diff)
mesa: compute.c C99 tidy up
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/compute.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/main/compute.c b/src/mesa/main/compute.c
index 5c845166884..e881d4f5a39 100644
--- a/src/mesa/main/compute.c
+++ b/src/mesa/main/compute.c
@@ -54,13 +54,12 @@ check_valid_to_compute(struct gl_context *ctx, const char *function)
static bool
validate_DispatchCompute(struct gl_context *ctx, const GLuint *num_groups)
{
- int i;
FLUSH_CURRENT(ctx, 0);
if (!check_valid_to_compute(ctx, "glDispatchCompute"))
return GL_FALSE;
- for (i = 0; i < 3; i++) {
+ for (int i = 0; i < 3; i++) {
/* From the OpenGL 4.3 Core Specification, Chapter 19, Compute Shaders:
*
* "An INVALID_VALUE error is generated if any of num_groups_x,
@@ -107,7 +106,6 @@ validate_DispatchComputeGroupSizeARB(struct gl_context *ctx,
const GLuint *group_size)
{
GLuint total_invocations = 1;
- int i;
FLUSH_CURRENT(ctx, 0);
@@ -128,7 +126,7 @@ validate_DispatchComputeGroupSizeARB(struct gl_context *ctx,
return GL_FALSE;
}
- for (i = 0; i < 3; i++) {
+ for (int i = 0; i < 3; i++) {
/* The ARB_compute_variable_group_size spec says:
*
* "An INVALID_VALUE error is generated if any of num_groups_x,