]> git.sesse.net Git - mlt/commitdiff
Piggy-back on Movit's GL.h library.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 8 Mar 2014 21:37:17 +0000 (22:37 +0100)
committerDan Dennedy <dan@dennedy.org>
Sun, 9 Mar 2014 01:35:15 +0000 (17:35 -0800)
This works around the issue that Movit might want to change from GLEW
to something else in the (very near) future; it's maybe not very pretty,
but it works pretty well in practice.

src/modules/opengl/filter_glsl_manager.h

index e867f26f7242e650ba474471482085f6d94e2d3b..35e81b13eb16efa35de1746664617af689c17abc 100644 (file)
 #ifndef GLSL_MANAGER_H
 #define GLSL_MANAGER_H
 
-#include <glew.h>
+// Include a random Movit header file to get in GL.h, without including it
+// ourselves (which might interfere with whatever OpenGL extension library
+// Movit has chosen to use).
+#include <movit/resource_pool.h>
+
 #include <mlt++/MltFilter.h>
 #include <mlt++/MltDeque.h>
 #include <map>