Game programming structure tips (PM log)

Pages: 12
There's one more problem. Texture_Free causes unhandled exception. It's happening when I close my game and the first texture is freed with Texture_Free
http://imageshack.us/f/638/failhd.jpg/
Last edited on
I suspected this might be a problem but wasn't sure.

Before you destroy your HGE object, call Clear:

1
2
TextureManager::Get().Clear();
Whatever_to_destroy_your_hge( hge );


I'll have to chalk this up to poor encapsulation on HGE's part ;P
Ha-ha, thanks for pointing out this. HGE pointer is released just before WinMain returns zero. Now everything works fine, thanks a lot!
(I hope someone else'll find this thread useful :D)
Topic archived. No new replies allowed.
Pages: 12