[nostalgia/core/userland/gl] Add other 3 backgrounds

This commit is contained in:
Gary Talent 2021-03-18 20:29:52 -05:00
parent e36b123b33
commit 1d1ce4d2cf
2 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,7 @@ ox::Error init(Context *ctx) {
} }
ox::Error run(Context *ctx) { ox::Error run(Context *ctx) {
auto id = ctx->windowerData<SdlImplData>(); const auto id = ctx->windowerData<SdlImplData>();
// try adaptive vsync // try adaptive vsync
if (SDL_GL_SetSwapInterval(-1) < 0) { if (SDL_GL_SetSwapInterval(-1) < 0) {
oxTrace("nostalgia::core::sdl", "Could not enable adaptive vsync, falling back on vsync"); oxTrace("nostalgia::core::sdl", "Could not enable adaptive vsync, falling back on vsync");

View File

@ -7,6 +7,7 @@
*/ */
#include <array> #include <array>
#define NOST_FPS_PRINT
#ifdef NOST_FPS_PRINT #ifdef NOST_FPS_PRINT
#include <iostream> #include <iostream>
#endif #endif
@ -43,7 +44,7 @@ struct GlImplData {
GLuint bgShader = 0; GLuint bgShader = 0;
int64_t prevFpsCheckTime = 0; int64_t prevFpsCheckTime = 0;
uint64_t draws = 0; uint64_t draws = 0;
std::array<Background, 1> backgrounds; std::array<Background, 4> backgrounds;
}; };
constexpr const GLchar *bgvshad = R"( constexpr const GLchar *bgvshad = R"(