summaryrefslogtreecommitdiff
path: root/dgl/Base.hpp
diff options
context:
space:
mode:
authorJP Cimalando <jpcima@users.noreply.github.com>2018-11-01 13:55:41 +0100
committerFilipe Coelho <falktx@falktx.com>2019-01-06 19:10:11 +0100
commitd80c799b8cba2765c78ac6cee867f5c4fce869ac (patch)
treeaa9201ce5504d1be5fd10aeb4833f2c934f70753 /dgl/Base.hpp
parentaeea76d93f9ed2397c9c86e9db72afedfa779f29 (diff)
software rendering with Cairo
Diffstat (limited to 'dgl/Base.hpp')
-rw-r--r--dgl/Base.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/dgl/Base.hpp b/dgl/Base.hpp
index 30d10e0d..7b7864fe 100644
--- a/dgl/Base.hpp
+++ b/dgl/Base.hpp
@@ -73,6 +73,8 @@
// -----------------------------------------------------------------------
// OpenGL includes
+#if defined(HAVE_DGL)
+
#ifdef DISTRHO_OS_MAC
# include <OpenGL/gl.h>
#else
@@ -83,9 +85,20 @@
# include <GL/glext.h>
#endif
+#endif
+
+// -----------------------------------------------------------------------
+// Cairo includes
+
+#if defined(HAVE_DCAIRO)
+# include <cairo/cairo.h>
+#endif
+
// -----------------------------------------------------------------------
// Missing OpenGL defines
+#if defined(HAVE_DGL)
+
#if defined(GL_BGR_EXT) && ! defined(GL_BGR)
# define GL_BGR GL_BGR_EXT
#endif
@@ -98,6 +111,8 @@
# define GL_CLAMP_TO_BORDER 0x812D
#endif
+#endif
+
#ifdef DISTRHO_OS_WINDOWS
// -----------------------------------------------------------------------
// Fix OpenGL includes for Windows, based on glfw code