mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 04:52:39 +02:00
nvGpuClose: correct order of operations
This commit is contained in:
parent
1c948e2d32
commit
67886bb3df
@ -67,13 +67,13 @@ Result nvGpuCreate(NvGpu* g)
|
|||||||
|
|
||||||
void nvGpuClose(NvGpu* g)
|
void nvGpuClose(NvGpu* g)
|
||||||
{
|
{
|
||||||
nvBufferExit();
|
|
||||||
nvInfoExit();
|
|
||||||
|
|
||||||
nvErrorNotifierClose(&g->error_notifier);
|
nvErrorNotifierClose(&g->error_notifier);
|
||||||
|
nvChannelClose(&g->gpu_channel);
|
||||||
nvZcullContextClose(&g->zcull_ctx);
|
nvZcullContextClose(&g->zcull_ctx);
|
||||||
nv3DContextClose(&g->_3d_ctx);
|
nv3DContextClose(&g->_3d_ctx);
|
||||||
nvGpfifoClose(&g->gpfifo);
|
nvGpfifoClose(&g->gpfifo);
|
||||||
nvAddressSpaceClose(&g->addr_space);
|
nvAddressSpaceClose(&g->addr_space);
|
||||||
nvChannelClose(&g->gpu_channel);
|
|
||||||
|
nvBufferExit();
|
||||||
|
nvInfoExit();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user