summaryrefslogtreecommitdiff
path: root/src/render/renderers.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-11 20:37:25 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-11 20:37:25 +0300
commit789b5f52993e4074bb8fd0f883e8a852fe60c733 (patch)
tree62499353922bdfa30670ba1dddad54842565e373 /src/render/renderers.cpp
parentb688376240610a837e2abea605d9cef87da74d42 (diff)
downloadplus-789b5f52993e4074bb8fd0f883e8a852fe60c733.tar.gz
plus-789b5f52993e4074bb8fd0f883e8a852fe60c733.tar.bz2
plus-789b5f52993e4074bb8fd0f883e8a852fe60c733.tar.xz
plus-789b5f52993e4074bb8fd0f883e8a852fe60c733.zip
Not allow select unsupported renderers in nacl.
Diffstat (limited to 'src/render/renderers.cpp')
-rw-r--r--src/render/renderers.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/render/renderers.cpp b/src/render/renderers.cpp
index ce5174859..91a5680ae 100644
--- a/src/render/renderers.cpp
+++ b/src/render/renderers.cpp
@@ -56,6 +56,20 @@ RenderType intToRenderType(const int mode)
#endif // defined(USE_SDL2)
// with OpenGL + with ANDROID end
+#elif defined(__native_client__)
+
+// with OpenGL + with nacl start
+#if defined(USE_SDL2)
+ && mode != RENDER_SAFE_OPENGL
+ && mode != RENDER_GLES2_OPENGL
+ && mode != RENDER_SDL2_DEFAULT)
+#else // defined(USE_SDL2)
+
+ && mode != RENDER_SAFE_OPENGL
+ && mode != RENDER_GLES2_OPENGL)
+#endif // defined(USE_SDL2)
+// with OpenGL + with nacl end
+
#else // defined(ANDROID)
// with OpenGL + without ANDROID start