Skip to content

Commit 887ff23

Browse files
author
Thayer J Andrews
committed
CCEffectRenderer - Fix the content size passed to the effect renderer
It should be the content size in points not the raw content size. Thanks to Scott for pointing this out.
1 parent 8743c22 commit 887ff23

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cocos2d/CCEffectNode.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ -(void)draw:(CCRenderer *)renderer transform:(const GLKMatrix4 *)transform
180180

181181
if (_effect)
182182
{
183-
_effectRenderer.contentSize = self.contentSize;
183+
_effectRenderer.contentSize = self.contentSizeInPoints;
184184
if ([_effect prepareForRendering] == CCEffectPrepareSuccess)
185185
{
186186
// Preparing an effect for rendering can modify its uniforms

cocos2d/CCNoARC.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ -(void)draw:(CCRenderer *)renderer transform:(const GLKMatrix4 *)transform;
7878

7979
if (_effect)
8080
{
81-
_effectRenderer.contentSize = self.contentSize;
81+
_effectRenderer.contentSize = self.contentSizeInPoints;
8282
if ([self.effect prepareForRendering] == CCEffectPrepareSuccess)
8383
{
8484
// Preparing an effect for rendering can modify its uniforms

0 commit comments

Comments
 (0)