[nostalgia] Update for compatibility with Ox changes
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
#include <imgui_impl_opengl3.h>
|
||||
#include <imgui_impl_glfw.h>
|
||||
|
||||
#include <ox/std/defines.hpp>
|
||||
|
||||
#include <nostalgia/core/config.hpp>
|
||||
#include <nostalgia/core/userland/gfx.hpp>
|
||||
|
||||
@@ -23,7 +25,9 @@ static void handleKeyPress(Context *ctx, int key) noexcept {
|
||||
switch (key) {
|
||||
case GLFW_KEY_ESCAPE:
|
||||
case GLFW_KEY_Q:
|
||||
oxIgnoreError(shutdown(ctx));
|
||||
if constexpr(ox::defines::Debug) {
|
||||
oxIgnoreError(shutdown(ctx));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@@ -47,7 +51,7 @@ ox::Error initGfx(Context *ctx) noexcept {
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2);
|
||||
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
|
||||
if constexpr(ox::defines::OS == ox::defines::OS::Darwin) {
|
||||
if constexpr(ox::defines::OS == ox::OS::Darwin) {
|
||||
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GLFW_TRUE);
|
||||
}
|
||||
glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE);
|
||||
|
||||
Reference in New Issue
Block a user