summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-25 21:47:27 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-26 00:47:34 +0300
commit69cfcb156d4224753d439ac3cd7708366e27e365 (patch)
tree89ea4bc8a5b1b61ac46619f021d5e9905f5e1642 /src/render
parent4821f538a888370eb80ec28f9bab269a4427a63c (diff)
downloadplus-69cfcb156d4224753d439ac3cd7708366e27e365.tar.gz
plus-69cfcb156d4224753d439ac3cd7708366e27e365.tar.bz2
plus-69cfcb156d4224753d439ac3cd7708366e27e365.tar.xz
plus-69cfcb156d4224753d439ac3cd7708366e27e365.zip
Report also altas creation OpenGL errors if enabled.
Diffstat (limited to 'src/render')
-rw-r--r--src/render/mobileopenglgraphics.cpp4
-rw-r--r--src/render/normalopenglgraphics.cpp4
-rw-r--r--src/render/opengl/mglemu.cpp4
3 files changed, 12 insertions, 0 deletions
diff --git a/src/render/mobileopenglgraphics.cpp b/src/render/mobileopenglgraphics.cpp
index 2194405a5..b2baa7d66 100644
--- a/src/render/mobileopenglgraphics.cpp
+++ b/src/render/mobileopenglgraphics.cpp
@@ -24,6 +24,10 @@
#include "render/mobileopenglgraphics.h"
+#ifdef OPENGLERRORS
+#include "graphicsmanager.h"
+#endif // OPENGLERRORS
+
#include "render/opengl/mgl.h"
#ifdef __native_client__
#include "render/opengl/naclglfunctions.h"
diff --git a/src/render/normalopenglgraphics.cpp b/src/render/normalopenglgraphics.cpp
index c6b3f33ec..73013773f 100644
--- a/src/render/normalopenglgraphics.cpp
+++ b/src/render/normalopenglgraphics.cpp
@@ -24,6 +24,10 @@
#include "render/normalopenglgraphics.h"
+#ifdef OPENGLERRORS
+#include "graphicsmanager.h"
+#endif // OPENGLERRORS
+
#ifdef DEBUG_OPENGL
#include "render/opengl/mgl.h"
#endif // DEBUG_OPENGL
diff --git a/src/render/opengl/mglemu.cpp b/src/render/opengl/mglemu.cpp
index eb5949f0b..864b130ef 100644
--- a/src/render/opengl/mglemu.cpp
+++ b/src/render/opengl/mglemu.cpp
@@ -22,6 +22,10 @@
#include "render/opengl/mglemu.h"
+#ifdef OPENGLERRORS
+#include "graphicsmanager.h"
+#endif // OPENGLERRORS
+
#include "resources/openglimagehelper.h"
#include "debug.h"