]> git.sesse.net Git - movit/blobdiff - white_balance_effect_test.cpp
Hard-assert on something that has bitten me too many times now.
[movit] / white_balance_effect_test.cpp
index 99afce5f892fca3447feeb179edf2a2e93f376ed..b0642077e5c039143f23574f5d9d9ca7655f0077 100644 (file)
@@ -1,6 +1,6 @@
 // Unit tests for WhiteBalanceEffect.
 
-#include <GL/glew.h>
+#include <epoxy/gl.h>
 
 #include "effect_chain.h"
 #include "gtest/gtest.h"
@@ -8,6 +8,8 @@
 #include "test_util.h"
 #include "white_balance_effect.h"
 
+namespace movit {
+
 TEST(WhiteBalanceEffectTest, GrayNeutralDoesNothing) {
        float data[] = {
                0.0f, 0.0f, 0.0f, 1.0f,
@@ -102,3 +104,5 @@ TEST(WhiteBalanceEffectTest, HigherColorTemperatureIncreasesBlue) {
        EXPECT_GT(out_data[4 * 1 + 2] - out_data[4 * 1 + 1], 0.05);
        EXPECT_GT(out_data[4 * 1 + 1] - out_data[4 * 1 + 0], 0.05);
 }
+
+}  // namespace movit