From 78e7dcea38b33bdee29105d39e30814a260fe47d Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Thu, 15 Mar 2012 22:37:51 +0100 Subject: [PATCH] Fixed sf::BlendNone not working --- src/SFML/Graphics/RenderTarget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SFML/Graphics/RenderTarget.cpp b/src/SFML/Graphics/RenderTarget.cpp index 7ecc3cdc..a50c472d 100644 --- a/src/SFML/Graphics/RenderTarget.cpp +++ b/src/SFML/Graphics/RenderTarget.cpp @@ -257,10 +257,9 @@ void RenderTarget::resetGLStates() // Define the default OpenGL states glCheck(glDisable(GL_LIGHTING)); glCheck(glDisable(GL_DEPTH_TEST)); + glCheck(glDisable(GL_ALPHA_TEST)); glCheck(glEnable(GL_TEXTURE_2D)); - glCheck(glEnable(GL_ALPHA_TEST)); glCheck(glEnable(GL_BLEND)); - glCheck(glAlphaFunc(GL_GREATER, 0)); glCheck(glMatrixMode(GL_MODELVIEW)); glCheck(glEnableClientState(GL_VERTEX_ARRAY)); glCheck(glEnableClientState(GL_COLOR_ARRAY));