Skip to content

Commit

Permalink
Revert last commit (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
masagrator authored May 3, 2023
1 parent 779b4ea commit e06d425
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions include/tesla.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1079,25 +1079,7 @@ namespace tsl {
if (!this->m_initialized)
return;

//framebufferClose(&this->m_framebuffer);
Framebuffer* fb = &this->m_framebuffer;
if (!fb || !fb->has_init)
return;

if (fb->buf_linear)
free(fb->buf_linear);

if (fb->buf) {
nwindowReleaseBuffers(fb->win);
nvMapClose(&fb->map);
free(fb->buf);
}

memset(fb, 0, sizeof(*fb));
nvFenceExit();
nvMapExit();
svcSleepThread(10'000'000);
nvExit();
framebufferClose(&this->m_framebuffer);
nwindowClose(&this->m_window);
viDestroyManagedLayer(&this->m_layer);
viCloseDisplay(&this->m_display);
Expand Down

0 comments on commit e06d425

Please sign in to comment.