Skip to content

Commit

Permalink
Update subtree-rasterization.md (TextureGroup#679)
Browse files Browse the repository at this point in the history
* Update subtree-rasterization.md

For Texture 2.5.1 API

* Update subtree-rasterization.md
  • Loading branch information
WymzeeLabs authored and bernieperez committed Apr 25, 2018
1 parent 02b084e commit 81dfca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/_docs/subtree-rasterization.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ With all Texture nodes, enabling precompositing is as simple as:
<span class="language-toggle"><a data-lang="swift" class="swiftButton">Swift</a><a data-lang="objective-c" class = "active objcButton">Objective-C</a></span>
<div class = "code">
<pre lang="objc" class="objcCode">
rootNode.shouldRasterizeDescendants = YES;
[rootNode enableSubtreeRasterization];
</pre>
<pre lang="swift" class = "swiftCode hidden">
rootNode.shouldRasterizeDescendants = true
rootNode.enableSubtreeRasterization()
</pre>
</div>
</div>
Expand Down

0 comments on commit 81dfca7

Please sign in to comment.