forked from Gamua/Starling-Framework
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
now prefering RectangleTextures even for POT textures (closes Gamua#409)
Because of Stage3D-internals, POT-Textures use up more memory as necessary (they always allocate mipmaps, whether you need or not). RectangleTextures do not suffer from this problem, so it makes sense to default to RectangleTextures all the time. The downside: after it has been created, you cannot change the "repeat" property of a texture any more. The repeat setting must now be chosen when you create the texture. For this reason, all "Texture.from..." methods now contain a new "repeat" property. Thus, this change breaks the API at this point (although I don't expect the repeat property to be in use very often).
- Loading branch information
1 parent
ef5b722
commit 7e1daeb
Showing
3 changed files
with
35 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters