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
@ -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