mirror of https://github.com/axmolengine/axmol.git
No longer add sprite as child of RenderTexture (#2149)
This commit is contained in:
parent
a9b07919f5
commit
76b30a9a80
|
@ -249,9 +249,6 @@ bool RenderTexture::initWithWidthAndHeight(int w,
|
|||
// Disabled by default.
|
||||
_autoDraw = false;
|
||||
|
||||
// add sprite for backward compatibility
|
||||
addChild(_sprite);
|
||||
|
||||
ret = true;
|
||||
} while (0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue