Skip to content

Commit

Permalink
DkSwapchain: properly configure NWindow dimensions (see switchbrew/li…
Browse files Browse the repository at this point in the history
  • Loading branch information
fincs committed Sep 13, 2021
1 parent 24f9e45 commit c178dd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/dk_swapchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ DkResult Swapchain::initialize(void* nativeWindow, DkImage const* const images[]
return DkResult_BadState;
#endif

// Configure NWindow dimensions
if (R_FAILED(nwindowSetDimensions(m_nwin, width, height)))
return DkResult_Fail;

// Set up NvGraphicBuffer template
NvGraphicBuffer grbuf = {};
grbuf.header.num_ints = (sizeof(NvGraphicBuffer) - sizeof(NativeHandle)) / 4;
Expand Down

0 comments on commit c178dd1

Please sign in to comment.