From 3f855ffb63461edeb735bca9f0d9e8928bad3443 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Tue, 7 Feb 2017 09:49:09 +0700 Subject: [PATCH] Replace internal color format parameters on formats supported by GLES2. --- src/Graphics/OpenGLContext/opengl_ContextImpl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Graphics/OpenGLContext/opengl_ContextImpl.cpp b/src/Graphics/OpenGLContext/opengl_ContextImpl.cpp index 5ad80128..3eda1bdb 100644 --- a/src/Graphics/OpenGLContext/opengl_ContextImpl.cpp +++ b/src/Graphics/OpenGLContext/opengl_ContextImpl.cpp @@ -33,7 +33,12 @@ void ContextImpl::init() // Correct buffer target parameters, since GLES2 knows only GL_FRAMEBUFFER graphics::bufferTarget::DRAW_FRAMEBUFFER = graphics::bufferTarget::FRAMEBUFFER; graphics::bufferTarget::READ_FRAMEBUFFER = graphics::bufferTarget::FRAMEBUFFER; + + // Replace internal color format parameters on formats supported by GLES2 + graphics::internalcolorFormat::RGB8 = graphics::InternalColorFormatParam(GL_RGB); graphics::internalcolorFormat::RGBA8 = graphics::InternalColorFormatParam(GL_RGBA); + graphics::internalcolorFormat::RGBA4 = graphics::InternalColorFormatParam(GL_RGBA); + graphics::internalcolorFormat::RGB5_A1 = graphics::InternalColorFormatParam(GL_RGBA); } if (!m_cachedFunctions)