]> git.sesse.net Git - movit/blobdiff - sandbox_effect.h
Fix an issue where a (cached) shader program could be used from multiple
[movit] / sandbox_effect.h
index 072bc2b1096a95e592de293c396bdb2ce647afd7..25c79920109cbbdbf1d0418c41566df863a037df 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _SANDBOX_EFFECT_H
-#define _SANDBOX_EFFECT_H 1
+#ifndef _MOVIT_SANDBOX_EFFECT_H
+#define _MOVIT_SANDBOX_EFFECT_H 1
 
 // This effect, by default, does nothing.
 //
@@ -8,11 +8,13 @@
 // throwaway code. When you're happy, you can do a bit of search and replace
 // to give it a proper name and its own place in the build system.
 
-#include <GL/glew.h>
+#include <epoxy/gl.h>
 #include <string>
 
 #include "effect.h"
 
+namespace movit {
+
 class SandboxEffect : public Effect {
 public:
        SandboxEffect();
@@ -25,4 +27,6 @@ private:
        float parm;
 };
 
-#endif // !defined(_SANDBOX_EFFECT_H)
+}  // namespace movit
+
+#endif // !defined(_MOVIT_SANDBOX_EFFECT_H)