MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / DisposeDevice

Method DisposeDevice

Source/Engine/Graphics/Graphics.cpp:87–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void Graphics::DisposeDevice()
88{
89 if (GPUDevice::Instance)
90 {
91 // Clean any danging pointer to last task (might stay if engine is disposing after crash)
92 GPUDevice::Instance->CurrentTask = nullptr;
93
94 GPUDevice::Instance->Dispose();
95 LOG_FLUSH();
96 Delete(GPUDevice::Instance);
97 GPUDevice::Instance = nullptr;
98 }
99}
100
101bool GraphicsService::Init()
102{

Callers

nothing calls this directly

Calls 2

DeleteFunction · 0.85
DisposeMethod · 0.45

Tested by

no test coverage detected