mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
Blend::Add now uses source alpha
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1026 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
7e7489b34a
commit
c68876a858
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user