]> git.sesse.net Git - movit/blobdiff - white_balance_effect.cpp
Change to using GLEW everywhere.
[movit] / white_balance_effect.cpp
index 8a00af4397afe6b8d2267712672bb0119572075a..b00f0ca6b50b40705f31d7426379cf48388cf6d4 100644 (file)
@@ -1,11 +1,11 @@
 #include <math.h>
 #include <assert.h>
+#include <GL/glew.h>
 
 #include <Eigen/LU>
 
 #include "white_balance_effect.h"
 #include "util.h"
-#include "opengl.h"
 #include "d65.h"
 
 using namespace Eigen;
@@ -39,7 +39,7 @@ Vector3d convert_color_temperature_to_xyz(float T)
 }
 
 // Assuming sRGB primaries, from Wikipedia.
-double rgb_to_xyz_matrix[9] = {
+const double rgb_to_xyz_matrix[9] = {
        0.4124, 0.2126, 0.0193, 
        0.3576, 0.7152, 0.1192,
        0.1805, 0.0722, 0.9505,