We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
TestCpp error in RenderTextureTest, Testing depthStencil attachment on Chipset Tegra 3
TestCpp error in RenderTextureTest, Testing depthStencil attachment on Chipset Tegra 3
Bug #3672 [Closed]
I solved using this method:
https://github.com/blackberry/GamePlay/commit/a8656a693d4efade367f1f13076144638e18d2df
use GL_DEPTH_COMPONENT16 + GL_STENCIL_INDEX8 separately, in the init() of the CCRenderTexture (Cocos2d-x 2.1.5)
Redmine issue system is closed, we are using github issue system instead.
This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8306
Status: | Closed | |
---|---|---|
Start date: | 2014-01-11 | |
Priority: | Low | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | android | |
Target version: | - |
Hi, this issue happens on Tegra 3 (ASUS TF300), Cocos2d-x 3.0 alpha1 (12 jan 2014)
Not happens on Nexus 7, Amazon Kindle HD, Galaxy s plus, Galaxy nexus, note 2.
Same issue happens with cocos2d-x 2.2.1 and 2.1.5 (but openGL errors are in different files)
TestCpp
> RenderTextureTest> Testing depthStencil attachmentNo Circle appears, and LogCat shows this error
01-12 00:26:36.770: D/cocos2d-x debug info(8523): Assert failed: Could not attach texture to framebuffer
01-12 00:26:36.770: E/cocos2d-x assert(8523): /path/../cocos/2d/CCRenderTexture.cpp function:initWithWidthAndHeight line:275
01-12 00:26:36.800: D/cocos2d-x debug info(8523): OpenGL error 0x0500 in /path/../cocos/2d/CCTexture2D.cpp initWithMipmaps 622
I have also noticed, another error when testCpp goes in background, in this page:
01-12 00:29:50.550: D/cocos2d-x debug info(8523): Assert failed: only RGBA8888 can be saved as image
01-12 00:29:50.560: E/cocos2d-x assert(8523): /path/../cocos/2d/CCRenderTexture.cpp function:newImage line:428
thanks
Don