From c68876a85858deb2303f9bdc02cc72a79ee4a2ae Mon Sep 17 00:00:00 2001 From: laurentgom Date: Sat, 28 Feb 2009 19:11:01 +0000 Subject: [PATCH] Blend::Add now uses source alpha git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1026 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/Audio/SoundStream.cpp | 2 +- src/SFML/Graphics/Drawable.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SFML/Audio/SoundStream.cpp b/src/SFML/Audio/SoundStream.cpp index f5b87c430..f5ff3901f 100644 --- a/src/SFML/Audio/SoundStream.cpp +++ b/src/SFML/Audio/SoundStream.cpp @@ -328,7 +328,7 @@ bool SoundStream::FillQueue() void SoundStream::ClearQueue() { // Get the number of buffers still in the queue - ALint NbQueued; + ALint NbQueued; ALCheck(alGetSourcei(Sound::mySource, AL_BUFFERS_QUEUED, &NbQueued)); // Unqueue them all diff --git a/src/SFML/Graphics/Drawable.cpp b/src/SFML/Graphics/Drawable.cpp index 04f316783..8651c9eeb 100644 --- a/src/SFML/Graphics/Drawable.cpp +++ b/src/SFML/Graphics/Drawable.cpp @@ -382,7 +382,7 @@ void Drawable::Draw(RenderTarget& Target) const switch (myBlendMode) { case Blend::Alpha : GLCheck(glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)); break; - case Blend::Add : GLCheck(glBlendFunc(GL_ONE, GL_ONE)); break; + case Blend::Add : GLCheck(glBlendFunc(GL_SRC_ALPHA, GL_ONE)); break; case Blend::Multiply : GLCheck(glBlendFunc(GL_DST_COLOR, GL_ZERO)); break; default : break; }