Hi,
this might be a bug, but before creating an issue I wanted to be sure it's not just me.
I have a layer and in the init of it I create a RenderTexture instance
RenderTexture *rt = [RenderTexture renderTextureWithWidth:100 height:32];
then I just call clear on it:
[rt clear:100 g:100 b:100 a:255];
and the WHOLE background becomes WHITE (not even gray as per passed RGB values).
The instance is not even attached to the layer.
I did few tests and that's what I found out:
- if I add the RenderTexture instance to the layer, I can see that the texture is actually cleared, but just in white
- it doesn't matter if the instance is attached to a layer, the whole layer's background becomes white
- if I don't clear and I just call begin, then draw something and then end... everything works (until the next clear)
I'm using Cocos2d 0.8.1 with SDK 3.1.2, tested both on simulator and on a iPhone 3G (same thing)
Any idea?