diff options
author | Brian Paul <[email protected]> | 2010-11-23 17:00:08 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-11-23 17:00:08 -0700 |
commit | 2900e56f9dda864f2c5b75d3db4dcc452dc91373 (patch) | |
tree | 584ac473c81fd38398bdd6cae84418da2a8ccc00 /src/mesa/main/shaderapi.c | |
parent | c628fd743ee3c3305e9beac7f0e6efacf6982115 (diff) |
mesa: use gl_shader_type enum
Diffstat (limited to 'src/mesa/main/shaderapi.c')
-rw-r--r-- | src/mesa/main/shaderapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 030236e7350..96df58d35c2 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -95,7 +95,7 @@ _mesa_init_shader_state(struct gl_context *ctx) * are generated by the GLSL compiler. */ struct gl_shader_compiler_options options; - GLuint i; + gl_shader_type sh; memset(&options, 0, sizeof(options)); options.MaxUnrollIterations = 32; @@ -103,8 +103,8 @@ _mesa_init_shader_state(struct gl_context *ctx) /* Default pragma settings */ options.DefaultPragmas.Optimize = GL_TRUE; - for(i = 0; i < MESA_SHADER_TYPES; ++i) - memcpy(&ctx->ShaderCompilerOptions[i], &options, sizeof(options)); + for (sh = 0; sh < MESA_SHADER_TYPES; ++sh) + memcpy(&ctx->ShaderCompilerOptions[sh], &options, sizeof(options)); ctx->Shader.Flags = get_shader_flags(); } |