mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 02:22:15 +02:00
Bad cleanup in gpu.c
This commit is contained in:
parent
9a10f85fab
commit
a4982f3667
@ -7,8 +7,10 @@ Result nvgpuCreate(NvGpu* g)
|
|||||||
if (R_FAILED(nvinfoInit()))
|
if (R_FAILED(nvinfoInit()))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_NvinfoFailedToInitialize);
|
return MAKERESULT(Module_Libnx, LibnxError_NvinfoFailedToInitialize);
|
||||||
|
|
||||||
if (R_FAILED(nvbufInit()))
|
if (R_FAILED(nvbufInit())) {
|
||||||
|
nvinfoExit();
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_NvbufFailedToInitialize);
|
return MAKERESULT(Module_Libnx, LibnxError_NvbufFailedToInitialize);
|
||||||
|
}
|
||||||
|
|
||||||
rc = nvchannelCreate(&g->gpu_channel, "/dev/nvhost-gpu");
|
rc = nvchannelCreate(&g->gpu_channel, "/dev/nvhost-gpu");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user