Mesa (master): program: add #ifndef SAMPLER_H wrapper

Brian Paul brianp at kemper.freedesktop.org
Tue Dec 16 15:51:40 UTC 2014


Module: Mesa
Branch: master
Commit: 04addcc6a38756b0b9860d84a8b5822f9a652414
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=04addcc6a38756b0b9860d84a8b5822f9a652414

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Dec 15 17:01:22 2014 -0700

program: add #ifndef SAMPLER_H wrapper

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>

---

 src/mesa/program/sampler.h |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/mesa/program/sampler.h b/src/mesa/program/sampler.h
index 8b7c3b6..61c7f58 100644
--- a/src/mesa/program/sampler.h
+++ b/src/mesa/program/sampler.h
@@ -23,6 +23,10 @@
  * DEALINGS IN THE SOFTWARE.
  */
 
+#ifndef SAMPLER_H
+#define SAMPLER_H
+
+
 int
 _mesa_get_sampler_uniform_value(class ir_dereference *sampler,
 				struct gl_shader_program *shader_program,
@@ -30,3 +34,6 @@ _mesa_get_sampler_uniform_value(class ir_dereference *sampler,
 
 class ir_rvalue *
 _mesa_get_sampler_array_nonconst_index(class ir_dereference *sampler);
+
+
+#endif /* SAMPLER_H */




More information about the mesa-commit mailing list