Texture object leak on quit
by Daniel Buckmaster · in Torque 3D Professional · 09/06/2014 (1:27 am) · 1 replies
Trying to start to enable PostFX in t3d-bones, my really barebones script project. If I call FXAAFx.enable() when I enter the game, I get a popup on exit saying there's a texture object leak, and this in the console:
Okay, so do I need to disable the PostFX on quit? I've tried calling FXAAFx.disable() in onExit() to no effect - however, if I type FXAAFx.disable();quit(); in the console, it reliably seems to not give me a warning. Is there some shutdown that happens before onExit that I need to pre-empt?
EDIT: Instead of binding quit() to escape, I've found FXAAFx.disable();quit();. Which reliably ensures there's no texture leak. What gives?
GFXTextureObject Usage Report - 1 active TOs --------------------------------------------------------------- Addr Dim. GFXTextureProfile ProfilerPath DebugDescription 79146a8 ( 800, 600) PostFxTargetProfile MainLoop -> CanvasRenderControls -> GameRenderWorld -> SceneGraph_renderScene -> SceneGraph_batchRenderImages -> Scene_renderObjects -> RenderPassManager_RenderPass -> RenderPassManager_Render mBackBufferCopyTex ----- dump complete ------------------------------------------- h:codetorque3denginesourcegfxgfxdevice.cpp(275) : Fatal - There is a texture object leak, check the log for more details.
Okay, so do I need to disable the PostFX on quit? I've tried calling FXAAFx.disable() in onExit() to no effect - however, if I type FXAAFx.disable();quit(); in the console, it reliably seems to not give me a warning. Is there some shutdown that happens before onExit that I need to pre-empt?
EDIT: Instead of binding quit() to escape, I've found FXAAFx.disable();quit();. Which reliably ensures there's no texture leak. What gives?
About the author
Studying mechatronic engineering and computer science at the University of Sydney. Game development is probably my most time-consuming hobby!
Torque Owner Richard Ranft
Roostertail Games