No longer add sprite as child of RenderTexture (#2149)

This commit is contained in:
halx99 2024-09-15 02:02:21 +08:00 committed by GitHub
parent a9b07919f5
commit 76b30a9a80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 3 deletions

View File

@ -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);