Author Topic: FrameBuffer.dispose()  (Read 1790 times)

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
FrameBuffer.dispose()
« 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 ???

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11744
    • View Profile
    • http://www.jpct.net
Re: FrameBuffer.dispose()
« Reply #1 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...

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
Re: FrameBuffer.dispose()
« Reply #2 on: March 31, 2010, 10:08:59 pm »
yes it helped..