From 0e65f72b612bb4fb077224492be0bca2ff4a406f Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Fri, 6 Nov 2009 13:22:39 +0000 Subject: [PATCH] Fixed wrong blending mode with glBlendFuncSeparate git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1265 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/Graphics/Batch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Graphics/Batch.cpp b/src/SFML/Graphics/Batch.cpp index 9b247559..b27b50a8 100644 --- a/src/SFML/Graphics/Batch.cpp +++ b/src/SFML/Graphics/Batch.cpp @@ -98,7 +98,7 @@ void Batch::Render(GeometryRenderer& renderer) const default : case Blend::Alpha : if (GLEW_EXT_blend_func_separate) - GLCheck(glBlendFuncSeparateEXT(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ZERO)); + GLCheck(glBlendFuncSeparateEXT(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA)); else GLCheck(glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)); break;