diff --git a/src/nostalgia/core/sdl/core.cpp b/src/nostalgia/core/sdl/core.cpp index 9746875d5..683c6c13a 100644 --- a/src/nostalgia/core/sdl/core.cpp +++ b/src/nostalgia/core/sdl/core.cpp @@ -27,7 +27,7 @@ ox::Error init(Context *ctx) { } ox::Error run(Context *ctx) { - auto id = ctx->windowerData(); + const auto id = ctx->windowerData(); // try adaptive vsync if (SDL_GL_SetSwapInterval(-1) < 0) { oxTrace("nostalgia::core::sdl", "Could not enable adaptive vsync, falling back on vsync"); diff --git a/src/nostalgia/core/userland/gfx_opengl.cpp b/src/nostalgia/core/userland/gfx_opengl.cpp index de1d62c27..d48460ed0 100644 --- a/src/nostalgia/core/userland/gfx_opengl.cpp +++ b/src/nostalgia/core/userland/gfx_opengl.cpp @@ -7,6 +7,7 @@ */ #include +#define NOST_FPS_PRINT #ifdef NOST_FPS_PRINT #include #endif @@ -43,7 +44,7 @@ struct GlImplData { GLuint bgShader = 0; int64_t prevFpsCheckTime = 0; uint64_t draws = 0; - std::array backgrounds; + std::array backgrounds; }; constexpr const GLchar *bgvshad = R"(