From d34bc311176b0ca92a0cb6a41744616c7c5c250e Mon Sep 17 00:00:00 2001 From: Adam Cheney Date: Tue, 25 Sep 2012 17:05:40 -0700 Subject: [PATCH] GLESGraphicSystem: fix blend function factors GL_ONE, GL_ONE_MINUS_SRC_ALPHA is correct for alpha. Otherwise the framebuffer is too transparent and may cause artifacts with hardware overlays. --- .../Renderers/Graphic/src/GraphicSystems/GLESGraphicSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LayerManagerPlugins/Renderers/Graphic/src/GraphicSystems/GLESGraphicSystem.cpp b/LayerManagerPlugins/Renderers/Graphic/src/GraphicSystems/GLESGraphicSystem.cpp index 3da18f4..0e0b3a7 100644 --- a/LayerManagerPlugins/Renderers/Graphic/src/GraphicSystems/GLESGraphicSystem.cpp +++ b/LayerManagerPlugins/Renderers/Graphic/src/GraphicSystems/GLESGraphicSystem.cpp @@ -525,7 +525,7 @@ bool GLESGraphicsystem::initOpenGLES(EGLint displayWidth, EGLint displayHeight) glEnableVertexAttribArray(1); glEnable(GL_BLEND); - glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA,GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA); m_blendingStatus = true; glClearColor(0.0, 0.0, 0.0, 0.0); resize(displayWidth, displayHeight); -- 2.7.4