mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
NWindow: don't use bqDetachBuffer as it's unnecessary and in fact does nothing in the place it's called (reported by @Thog)
This commit is contained in:
parent
bf8f6ae5f5
commit
ccb79ff4b6
@ -324,13 +324,8 @@ Result nwindowReleaseBuffers(NWindow* nw)
|
|||||||
|
|
||||||
if (nw->cur_slot >= 0)
|
if (nw->cur_slot >= 0)
|
||||||
rc = MAKERESULT(Module_Libnx, LibnxError_BadInput);
|
rc = MAKERESULT(Module_Libnx, LibnxError_BadInput);
|
||||||
else if (nw->is_connected && nw->slots_configured) {
|
else if (nw->is_connected && nw->slots_configured)
|
||||||
for (u32 i = 0; i < 64; i ++)
|
|
||||||
if (nw->slots_configured & (1UL << i))
|
|
||||||
bqDetachBuffer(&nw->bq, i);
|
|
||||||
|
|
||||||
rc = _nwindowDisconnect(nw);
|
rc = _nwindowDisconnect(nw);
|
||||||
}
|
|
||||||
|
|
||||||
mutexUnlock(&nw->mutex);
|
mutexUnlock(&nw->mutex);
|
||||||
return rc;
|
return rc;
|
||||||
|
Loading…
Reference in New Issue
Block a user