diff options
-rw-r--r-- | src/adaptationlayers/threadedtexturemanager.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/adaptationlayers/threadedtexturemanager.cpp b/src/adaptationlayers/threadedtexturemanager.cpp index 4df4d6c..616f0ec 100644 --- a/src/adaptationlayers/threadedtexturemanager.cpp +++ b/src/adaptationlayers/threadedtexturemanager.cpp @@ -10,6 +10,10 @@ #include <qdatetime.h> +#ifndef GL_BGRA +#define GL_BGRA 0x80E1 +#endif + struct TextureToUpload { QImage image; @@ -62,6 +66,10 @@ public: if (work.image.isNull()) continue; +#ifdef QT_OPENGL_ES + qWarning("ThreadedTextureManager: Chances are that BGRA does not work on GLES"); +#endif + GLuint id; glGenTextures(1, &id); glBindTexture(GL_TEXTURE_2D, id); |