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:
fincs 2020-03-10 00:07:04 +01:00
parent bf8f6ae5f5
commit ccb79ff4b6
No known key found for this signature in database
GPG Key ID: 62C7609ADA219C60

View File

@ -324,13 +324,8 @@ Result nwindowReleaseBuffers(NWindow* nw)
if (nw->cur_slot >= 0)
rc = MAKERESULT(Module_Libnx, LibnxError_BadInput);
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);
else if (nw->is_connected && nw->slots_configured)
rc = _nwindowDisconnect(nw);
}
mutexUnlock(&nw->mutex);
return rc;