mirror of https://github.com/axmolengine/axmol.git
closed #4513: change 1.0 to 1.0f to avoid the warning.
This commit is contained in:
parent
1520f85b32
commit
289e632a40
|
@ -1871,14 +1871,14 @@ void PremultipliedAlphaTest::onEnter()
|
|||
// Toggle next line to see old behavior
|
||||
// this->emitter.opacityModifyRGB = NO;
|
||||
|
||||
_emitter->setStartColor(Color4F(1, 1, 1, 1));
|
||||
_emitter->setEndColor(Color4F(1, 1, 1, 0));
|
||||
_emitter->setStartColorVar(Color4F(0, 0, 0, 0));
|
||||
_emitter->setEndColorVar(Color4F(0, 0, 0, 0));
|
||||
_emitter->setStartColor(Color4F(1.0f, 1.0f, 1.0f, 1.0f));
|
||||
_emitter->setEndColor(Color4F(1.0f, 1.0f, 1.0f, 0.0f));
|
||||
_emitter->setStartColorVar(Color4F(0.0f, 0.0f, 0.0f, 0.0f));
|
||||
_emitter->setEndColorVar(Color4F(0.0f, 0.0f, 0.0f, 0.0f));
|
||||
|
||||
this->addChild(_emitter, 10);
|
||||
|
||||
schedule(schedule_selector(PremultipliedAlphaTest::readdPaticle), 1.0);
|
||||
schedule(schedule_selector(PremultipliedAlphaTest::readdPaticle), 1.0f);
|
||||
}
|
||||
|
||||
// PremultipliedAlphaTest2
|
||||
|
|
Loading…
Reference in New Issue