jPCT-AE - a 3d engine for Android > Support
FrameBuffer.dispose()
(1/1)
raft:
does FrameBuffer.dispose() disposes textures somehow ?
i'm playing with orientation change event with G1. on such a case, only Renderer.onSurfaceChanged(..) is called. after old frameBuffer is disposed all my -blitted- textures seem to be gone. i tried adding them to TextureManager but didnt help ???
EgonOlsen:
Actually no. It only unloads them (if known to the TextureManager), because it disposes the renderer too. I think the problem is, that the texture's pixel data get cleared after uploading them...unless you have an ITextureEffect assigned. Try to assign a dummy one and see if that changes something. If it helps, i'll find a more elegant solution for this...
raft:
yes it helped..
Navigation
[0] Message Index
Go to full version