[nostalgia/core/userland/gl] Add other 3 backgrounds
This commit is contained in:
parent
e36b123b33
commit
1d1ce4d2cf
@ -27,7 +27,7 @@ ox::Error init(Context *ctx) {
|
||||
}
|
||||
|
||||
ox::Error run(Context *ctx) {
|
||||
auto id = ctx->windowerData<SdlImplData>();
|
||||
const auto id = ctx->windowerData<SdlImplData>();
|
||||
// try adaptive vsync
|
||||
if (SDL_GL_SetSwapInterval(-1) < 0) {
|
||||
oxTrace("nostalgia::core::sdl", "Could not enable adaptive vsync, falling back on vsync");
|
||||
|
@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include <array>
|
||||
#define NOST_FPS_PRINT
|
||||
#ifdef NOST_FPS_PRINT
|
||||
#include <iostream>
|
||||
#endif
|
||||
@ -43,7 +44,7 @@ struct GlImplData {
|
||||
GLuint bgShader = 0;
|
||||
int64_t prevFpsCheckTime = 0;
|
||||
uint64_t draws = 0;
|
||||
std::array<Background, 1> backgrounds;
|
||||
std::array<Background, 4> backgrounds;
|
||||
};
|
||||
|
||||
constexpr const GLchar *bgvshad = R"(
|
||||
|
Loading…
Reference in New Issue
Block a user