aboutsummaryrefslogtreecommitdiff
path: root/system/egl/egl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'system/egl/egl.cpp')
-rw-r--r--system/egl/egl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/egl/egl.cpp b/system/egl/egl.cpp
index 16182ed8..8e0268ad 100644
--- a/system/egl/egl.cpp
+++ b/system/egl/egl.cpp
@@ -34,6 +34,12 @@
#include <system/window.h>
+#if PLATFORM_SDK_VERSION <= 16
+#define queueBuffer_DEPRECATED queueBuffer
+#define dequeueBuffer_DEPRECATED dequeueBuffer
+#define cancelBuffer_DEPRECATED cancelBuffer
+#endif // PLATFORM_SDK_VERSION <= 16
+
template<typename T>
static T setErrorFunc(GLint error, T returnValue) {
getEGLThreadInfo()->eglError = error;