From ccb79ff4b6a370f9d488609c8d8bfde18215ef13 Mon Sep 17 00:00:00 2001 From: fincs Date: Tue, 10 Mar 2020 00:07:04 +0100 Subject: [PATCH] NWindow: don't use bqDetachBuffer as it's unnecessary and in fact does nothing in the place it's called (reported by @Thog) --- nx/source/display/native_window.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/nx/source/display/native_window.c b/nx/source/display/native_window.c index 4703c97c..47081ced 100644 --- a/nx/source/display/native_window.c +++ b/nx/source/display/native_window.c @@ -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;