Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 787 vs 788 for /trunk/Source Code/Platform/Video/GFXDeviceState.cpp

Diff revisions: vs.
  @@ -257,10 +257,8 @@
257 257 /// Revert everything that was set up in initRenderingAPI()
258 258 void GFXDevice::closeRenderingAPI() {
259 259 assert(_api != nullptr && "GFXDevice error: closeRenderingAPI called without init!");
260 -
261 - MemoryManager::DELETE(_axisGizmo);
262 - MemoryManager::DELETE(_debugFrustumPrimitive);
263 -
260 + _axisGizmo->clear();
261 + _debugFrustumPrimitive->clear();
264 262 // Destroy our post processing system
265 263 Console::printfn(Locale::get(_ID("STOP_POST_FX")));
266 264 PostFX::destroyInstance();
  @@ -268,21 +266,15 @@
268 266 Console::printfn(Locale::get(_ID("CLOSING_RENDERER")));
269 267 RenderStateBlock::clear();
270 268 _gfxDataBuffer->destroy();
271 - MemoryManager::DELETE(_gfxDataBuffer);
272 269
273 270 EnvironmentProbe::onShutdown();
274 271 // Destroy all rendering passes and rendering bins
275 272 RenderPassManager::destroyInstance();
276 273 deallocateRT(_previousDepthBuffer);
277 274 _rtPool.clear();
278 - _previewDepthMapShader.reset();
279 - _renderTargetDraw.reset();
280 - _HIZConstructProgram.reset();
281 - _HIZCullProgram.reset();
282 - _displayShader.reset();
283 -
284 275 // Close the shader manager
285 276 ShaderProgram::onShutdown();
277 + _gpuObjectArena.clear();
286 278 // Close the rendering API
287 279 _api->closeRenderingAPI();
288 280