www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: raft on March 31, 2010, 09:39:56 pm

Title: FrameBuffer.dispose()
Post by: raft on March 31, 2010, 09:39:56 pm
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 ???
Title: Re: FrameBuffer.dispose()
Post by: EgonOlsen on March 31, 2010, 10:01:32 pm
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...
Title: Re: FrameBuffer.dispose()
Post by: raft on March 31, 2010, 10:08:59 pm
yes it helped..