diff options
author | Brian Paul <[email protected]> | 2017-11-08 22:07:08 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-11-09 14:13:59 -0700 |
commit | 9862a8403e0e27ebadf86ef5e8b3ebc5a35cae45 (patch) | |
tree | b52de05612b164e6d7440b5eb0159474d6dcc546 /src/mesa | |
parent | ad5f407b611f226030a356d7ade67f6146e4d6f7 (diff) |
mesa: minor reformatting, add const to gl_external_samplers()
This function should probably be moved elsewhere, too.
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/mtypes.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index d0926308d0a..af9115e8477 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -2532,7 +2532,9 @@ struct gl_linked_shader struct glsl_symbol_table *symbols; }; -static inline GLbitfield gl_external_samplers(struct gl_program *prog) + +static inline GLbitfield +gl_external_samplers(const struct gl_program *prog) { GLbitfield external_samplers = 0; GLbitfield mask = prog->SamplersUsed; @@ -2546,6 +2548,7 @@ static inline GLbitfield gl_external_samplers(struct gl_program *prog) return external_samplers; } + /** * Compile status enum. compile_skipped is used to indicate the compile * was skipped due to the shader matching one that's been seen before by |