We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
A wrong logic in CCRenderTexture::initWithWidthAndHeight
A wrong logic in CCRenderTexture::initWithWidthAndHeight
Bug #1697 [Closed]
Status: | Closed | |
---|---|---|
Start date: | 2013-02-04 | |
Priority: | Normal | |
Due date: | ||
Assignee: | ||
% Done: | 100% |
|
Category: | all | |
Target version: | cocos2d-2.1rc0-x-2.1.2 |
Refers to https://github.com/cocos2d/cocos2d-x/issues/1950.
1) <code>if (m_uDepthRenderBufffer != 0) </code>
should be
<code>if (uDepthStencilFormat != 0) </code>
2)
CCAssert(m_ePixelFormat != kCCTexture2DPixelFormat_A8, “only RGB and RGBA formats are valid for a render texture”);
should be
CCAssert(eFormat != kCCTexture2DPixelFormat_A8, “only RGB and RGBA formats are valid for a render texture”);