From 1d1ce4d2cf446d6695666a0037a51c5e3accc3d9 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 18 Mar 2021 20:29:52 -0500 Subject: [PATCH] [nostalgia/core/userland/gl] Add other 3 backgrounds --- src/nostalgia/core/sdl/core.cpp | 2 +- src/nostalgia/core/userland/gfx_opengl.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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"(