FrameBuffer.dispose()

Started by raft, March 31, 2010, 09:39:56 PM

Previous topic - Next topic

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