Last active
July 13, 2022 20:40
-
-
Save x2048/1beac4faa4c8482362dd7d4ada7048b4 to your computer and use it in GitHub Desktop.
patch 20220713
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/client/particles.cpp b/src/client/particles.cpp | |
index a1de1bb98..818cdc8cc 100644 | |
--- a/src/client/particles.cpp | |
+++ b/src/client/particles.cpp | |
@@ -63,12 +63,6 @@ Particle::Particle( | |
: ParticleParamTypes::BlendMode::alpha; | |
switch (blendmode) { | |
- case ParticleParamTypes::BlendMode::alpha: | |
- bfsrc = video::EBF_SRC_ALPHA; | |
- bfdst = video::EBF_ONE_MINUS_SRC_ALPHA; | |
- blendop = video::EBO_ADD; | |
- break; | |
- | |
case ParticleParamTypes::BlendMode::add: | |
bfsrc = video::EBF_SRC_ALPHA; | |
bfdst = video::EBF_DST_ALPHA; | |
@@ -87,7 +81,11 @@ Particle::Particle( | |
blendop = video::EBO_ADD; | |
break; | |
- default: assert(false); | |
+ default: // includes ParticleParamTypes::BlendMode::alpha | |
+ bfsrc = video::EBF_SRC_ALPHA; | |
+ bfdst = video::EBF_ONE_MINUS_SRC_ALPHA; | |
+ blendop = video::EBO_ADD; | |
+ break; | |
} | |
// Texture |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment