]> git.sesse.net Git - movit/blobdiff - white_balance_effect.cpp
Check for __APPLE__ instead of __DARWIN__.
[movit] / white_balance_effect.cpp
index 53c49e4ffc919b4d8ec6bcb321787a4f53b08613..69759adfc6148379698998674109a5ae17213e4b 100644 (file)
@@ -1,17 +1,20 @@
 #include <Eigen/Core>
 #include <Eigen/LU>
-#include <GL/glew.h>
+#include <epoxy/gl.h>
 #include <assert.h>
 
 #include "colorspace_conversion_effect.h"
 #include "d65.h"
 #include "effect_util.h"
+#include "image_format.h"
 #include "util.h"
 #include "white_balance_effect.h"
 
 using namespace Eigen;
 using namespace std;
 
+namespace movit {
+
 namespace {
 
 // Temperature is in Kelvin. Formula from http://en.wikipedia.org/wiki/Planckian_locus#Approximation .
@@ -147,3 +150,5 @@ void WhiteBalanceEffect::set_gl_state(GLuint glsl_program_num, const string &pre
                rgb_to_xyz_matrix;
        set_uniform_mat3(glsl_program_num, prefix, "correction_matrix", corr_matrix);
 }
+
+}  // namespace movit