Skip to content

Commit

Permalink
fix windowed mode switch
Browse files Browse the repository at this point in the history
  • Loading branch information
Tehsapper committed Sep 16, 2024
1 parent 80d5250 commit d351ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/limitless/core/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void Context::setFullscreen(bool value) noexcept {

const auto* mode = glfwGetVideoMode(monitor.value());
monitor = std::nullopt;
glfwSetWindowMonitor(window, monitor.value(), 0, 0, mode->width, mode->height, mode->refreshRate);
glfwSetWindowMonitor(window, nullptr, 0, 0, mode->width, mode->height, mode->refreshRate);
}
}

Expand Down

0 comments on commit d351ad0

Please sign in to comment.