Projects > cpp > Issues > Bug #1697

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

A wrong logic in CCRenderTexture::initWithWidthAndHeight

Bug #1697 [Closed]
dumganhar 2013-02-04 02:30 . Updated almost 12 years ago

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

dumganhar 2013-02-04 03:18
  • Description updated (diff)
zhangxm 2013-03-07 09:41
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Atom PDF

Status:Closed
Start date:2013-02-04
Priority:Normal
Due date:
Assignee:dumganhar
% Done:

100%

Category:all
Target version:cocos2d-2.1rc0-x-2.1.2