diff options
author | Brian Paul <[email protected]> | 2014-12-15 17:05:13 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-12-16 07:52:41 -0700 |
commit | 6dac455e6aea5b35a42b096de807b32522a2be20 (patch) | |
tree | e31ff5cd6e31c0c4204d4f67fa6f313b09795540 | |
parent | 6d2f59fd94432a31a65797c19b98ea04296909c9 (diff) |
program: remove extern "C" usage in sampler.cpp
Reviewed-by: Anuj Phogat <[email protected]>
Reviewed-by: Jose Fonseca <[email protected]>
-rw-r--r-- | src/mesa/program/sampler.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mesa/program/sampler.cpp b/src/mesa/program/sampler.cpp index 29a5408717a..f8584c96810 100644 --- a/src/mesa/program/sampler.cpp +++ b/src/mesa/program/sampler.cpp @@ -27,15 +27,14 @@ #include "glsl_types.h" #include "ir_visitor.h" #include "../glsl/program.h" -#include "program/hash_table.h" #include "ir_uniform.h" -extern "C" { #include "main/compiler.h" #include "main/mtypes.h" +#include "program/hash_table.h" #include "program/prog_parameter.h" #include "program/program.h" -} + class get_sampler_name : public ir_hierarchical_visitor { @@ -104,7 +103,7 @@ public: }; -extern "C" int +int _mesa_get_sampler_uniform_value(class ir_dereference *sampler, struct gl_shader_program *shader_program, const struct gl_program *prog) @@ -136,7 +135,7 @@ _mesa_get_sampler_uniform_value(class ir_dereference *sampler, } -extern "C" class ir_rvalue * +class ir_rvalue * _mesa_get_sampler_array_nonconst_index(class ir_dereference *sampler) { ir_dereference_array *deref_arr = sampler->as_dereference_array(); |