diff options
Diffstat (limited to 'src/libjin/render/window.cpp')
-rw-r--r-- | src/libjin/render/window.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/libjin/render/window.cpp b/src/libjin/render/window.cpp index 3357f07..1107a53 100644 --- a/src/libjin/render/window.cpp +++ b/src/libjin/render/window.cpp @@ -32,6 +32,8 @@ namespace render SDL_FlushEvent(SDL_WINDOWEVENT); } + SDL_GLContext ctx = NULL; + if (ctx) { SDL_GL_DeleteContext(ctx); @@ -74,16 +76,6 @@ namespace render SDL_DestroyWindow(wnd); } - SDL_Window* WindowSystem::getWnd() - { - return wnd; - } - - SDL_GLContext WindowSystem::getCtx() - { - return ctx; - } - inline void WindowSystem::swapBuffers() { if (wnd) |