From be4ed51b29f77de23f6ffbf61df65554c6a394ad Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 12 Dec 2015 23:48:21 +0300 Subject: Not build unsupported render backends on nacl. --- src/render/mobileopenglgraphics.cpp | 4 ++-- src/render/mobileopenglgraphics.h | 4 ++-- src/render/modernopenglgraphics.cpp | 4 ++-- src/render/modernopenglgraphics.h | 4 ++-- src/render/normalopenglgraphics.cpp | 4 ++-- src/render/normalopenglgraphics.h | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) (limited to 'src/render') diff --git a/src/render/mobileopenglgraphics.cpp b/src/render/mobileopenglgraphics.cpp index 995a36c84..4eecfa232 100644 --- a/src/render/mobileopenglgraphics.cpp +++ b/src/render/mobileopenglgraphics.cpp @@ -20,7 +20,7 @@ * along with this program. If not, see . */ -#ifdef USE_OPENGL +#if defined(USE_OPENGL) && !defined(__native_client__) #include "render/mobileopenglgraphics.h" @@ -1379,4 +1379,4 @@ void MobileOpenGLGraphics::debugBindTexture(const Image *const image A_UNUSED) } #endif -#endif // USE_OPENGL +#endif // defined(USE_OPENGL) && !defined(__native_client__) diff --git a/src/render/mobileopenglgraphics.h b/src/render/mobileopenglgraphics.h index 5011bae9e..ff722671e 100644 --- a/src/render/mobileopenglgraphics.h +++ b/src/render/mobileopenglgraphics.h @@ -23,7 +23,7 @@ #ifndef RENDER_MOBILEOPENGLGRAPHICS_H #define RENDER_MOBILEOPENGLGRAPHICS_H -#ifdef USE_OPENGL +#if defined(USE_OPENGL) && !defined(__native_client__) #include "localconsts.h" #include "render/graphics.h" @@ -96,6 +96,6 @@ class MobileOpenGLGraphics final : public Graphics #endif FBOInfo mFbo; }; -#endif +#endif // defined(USE_OPENGL) && !defined(__native_client__) #endif // RENDER_MOBILEOPENGLGRAPHICS_H diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp index 1e07810ed..f9fb6c25f 100644 --- a/src/render/modernopenglgraphics.cpp +++ b/src/render/modernopenglgraphics.cpp @@ -20,7 +20,7 @@ * along with this program. If not, see . */ -#if defined USE_OPENGL && !defined ANDROID +#if defined(USE_OPENGL) && !defined(ANDROID) && !defined(__native_client__) #include "render/modernopenglgraphics.h" @@ -1372,4 +1372,4 @@ void ModernOpenGLGraphics::debugBindTexture(const Image *const image A_UNUSED) } #endif -#endif // USE_OPENGL +#endif // defined(USE_OPENGL) && !defined(ANDROID) && !defined(__native_client__) diff --git a/src/render/modernopenglgraphics.h b/src/render/modernopenglgraphics.h index b1ee15a8f..5bdb70ea6 100644 --- a/src/render/modernopenglgraphics.h +++ b/src/render/modernopenglgraphics.h @@ -23,7 +23,7 @@ #ifndef RENDER_MODERNOPENGLGRAPHICS_H #define RENDER_MODERNOPENGLGRAPHICS_H -#if defined USE_OPENGL && !defined ANDROID +#if defined(USE_OPENGL) && !defined(ANDROID) && !defined(__native_client__) #include "localconsts.h" #include "render/graphics.h" @@ -135,6 +135,6 @@ class ModernOpenGLGraphics final : public Graphics #endif FBOInfo mFbo; }; -#endif +#endif // defined(USE_OPENGL) && !defined(ANDROID) && !defined(__native_client__) #endif // RENDER_MODERNOPENGLGRAPHICS_H diff --git a/src/render/normalopenglgraphics.cpp b/src/render/normalopenglgraphics.cpp index eb5609b19..2c28f4a79 100644 --- a/src/render/normalopenglgraphics.cpp +++ b/src/render/normalopenglgraphics.cpp @@ -20,7 +20,7 @@ * along with this program. If not, see . */ -#if defined USE_OPENGL && !defined ANDROID +#if defined(USE_OPENGL) && !defined(ANDROID) && !defined(__native_client__) #include "render/normalopenglgraphics.h" @@ -1725,4 +1725,4 @@ void NormalOpenGLGraphics::debugBindTexture(const Image *const image A_UNUSED) } #endif -#endif // USE_OPENGL +#endif // defined(USE_OPENGL) && !defined(ANDROID) && !defined(__native_client__) diff --git a/src/render/normalopenglgraphics.h b/src/render/normalopenglgraphics.h index 7d73223b6..fa8c8456a 100644 --- a/src/render/normalopenglgraphics.h +++ b/src/render/normalopenglgraphics.h @@ -23,7 +23,7 @@ #ifndef RENDER_NORMALOPENGLGRAPHICS_H #define RENDER_NORMALOPENGLGRAPHICS_H -#if defined USE_OPENGL && !defined ANDROID +#if defined USE_OPENGL && !defined ANDROID && !defined(__native_client__) #include "localconsts.h" #include "render/graphics.h" -- cgit v1.2.3-70-g09d2