diff --git a/src/nostalgia/core/sdl/core.hpp b/src/nostalgia/core/sdl/core.hpp index bd28752a..2ac3ab09 100644 --- a/src/nostalgia/core/sdl/core.hpp +++ b/src/nostalgia/core/sdl/core.hpp @@ -17,7 +17,6 @@ namespace nostalgia::core { struct SdlImplData { SDL_Window *window = nullptr; SDL_GLContext renderer = nullptr; - std::array bgTextures{}; }; } diff --git a/src/nostalgia/core/sdl/gfx.cpp b/src/nostalgia/core/sdl/gfx.cpp index 0b8581cd..6e1e6981 100644 --- a/src/nostalgia/core/sdl/gfx.cpp +++ b/src/nostalgia/core/sdl/gfx.cpp @@ -6,17 +6,13 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include "nostalgia/common/point.hpp" #include -#ifdef NOST_FPS_PRINT -#include -#endif -#include #include #include +#include #include #include @@ -49,11 +45,6 @@ ox::Error initGfx(Context *ctx) { ox::Error shutdownGfx(Context *ctx) { oxReturnError(renderer::shutdown(ctx)); auto id = ctx->windowerData(); - for (auto tex : id->bgTextures) { - if (tex) { - SDL_DestroyTexture(tex); - } - } SDL_GL_DeleteContext(id->renderer); SDL_DestroyWindow(id->window); ctx->setWindowerData(nullptr);