mirror of https://github.com/axmolengine/axmol.git
remove setParent
This commit is contained in:
parent
ff85173b4b
commit
8f5cd6cdc8
|
@ -442,9 +442,9 @@ Material* Material::clone() const
|
|||
for (const auto& technique: _techniques)
|
||||
{
|
||||
auto t = technique->clone();
|
||||
t->setParent(material);
|
||||
t->_parent = material;
|
||||
for (ssize_t i = 0; i < t->getPassCount(); i++) {
|
||||
t->getPassByIndex(i)->setParent(t);
|
||||
t->getPassByIndex(i)->_parent = t;
|
||||
}
|
||||
material->_techniques.pushBack(t);
|
||||
}
|
||||
|
|
|
@ -85,12 +85,6 @@ public:
|
|||
*/
|
||||
RenderState* getTopmost(RenderState* below);
|
||||
|
||||
/**
|
||||
* Set parent RenderState
|
||||
* @param parent Parent RenderState
|
||||
*/
|
||||
void setParent(RenderState* parent) { _parent = parent; }
|
||||
|
||||
enum Blend
|
||||
{
|
||||
BLEND_ZERO = GL_ZERO,
|
||||
|
|
Loading…
Reference in New Issue