We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07f3a00 commit a8d33afCopy full SHA for a8d33af
src/tools/partview.cpp
@@ -99,7 +99,7 @@ static void render()
99
//cout << "not inited" << endl;
100
inited=true;
101
colorMissing = false;
102
- colorMissing = false;
+ alphaMissing = false;
103
104
105
glEnable(GL_DEPTH_TEST);
@@ -149,12 +149,12 @@ static void render()
149
!particles->attributeInfo("alphaPP", alphaAttr) &
150
!particles->attributeInfo("pointOpacity", alphaAttr))
151
{
152
+ glDisable(GL_BLEND);
153
+ alphaMissing = true;
154
+ } else {
155
glEnable(GL_BLEND);
156
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
157
alphaMissing = false;
- } else {
- glDisable(GL_BLEND);
- alphaMissing = true;
158
}
159
160
0 commit comments