cocos / engine-native

Native engine for Cocos Creator v2.x
http://www.cocos.com/en/products
696 stars 572 forks source link

RenderTexture doesn't render all nodes #1026

Open TankTheFrank opened 6 years ago

TankTheFrank commented 6 years ago

RenderTexture seems broken in the lite branch, it doesn't render all visited notes. Attached is the result of the same code running on the 'lite' version that comes with Cocos Creator 1.7 and 'regular' cocos 2dx 3.16.

The test is nothing fancy, takes an jpeg image with 6x6 colored squares, breaks it in separate sprites using the same texture with different rects and renders/saves them to a file using RenderTexture.

texture_cocos-creator-170 texture_cocos2d-x-3 16

dumganhar commented 6 years ago

@TankTheFrank, could you upload this test case ? I will take a look at what it's happening.