framebufferCreate: actually set NWindow dimensions (fix #568)

This commit is contained in:
fincs 2021-09-13 19:01:34 +02:00
parent d90afaacde
commit fc2aaefb0f
No known key found for this signature in database
GPG Key ID: 62C7609ADA219C60

View File

@ -29,6 +29,10 @@ Result framebufferCreate(Framebuffer* fb, NWindow *win, u32 width, u32 height, u
if (!fb || !nwindowIsValid(win) || !width || !height || format < PIXEL_FORMAT_RGBA_8888 || format > PIXEL_FORMAT_RGBA_4444 || num_fbs < 1 || num_fbs > 3)
return MAKERESULT(Module_Libnx, LibnxError_BadInput);
rc = nwindowSetDimensions(win, width, height);
if (R_FAILED(rc))
return rc;
rc = nvInitialize();
if (R_SUCCEEDED(rc)) {
rc = nvMapInit();