aboutsummaryrefslogtreecommitdiff
path: root/src/lua/graphics/luaopen_graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/graphics/luaopen_graphics.cpp')
-rw-r--r--src/lua/graphics/luaopen_graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/graphics/luaopen_graphics.cpp b/src/lua/graphics/luaopen_graphics.cpp
index 8772744..490f560 100644
--- a/src/lua/graphics/luaopen_graphics.cpp
+++ b/src/lua/graphics/luaopen_graphics.cpp
@@ -148,7 +148,7 @@ namespace lua
*/
static int l_present(lua_State* L)
{
- SDL_GL_SwapWindow(Window::get()->getWnd());
+ Window::get()->swapBuffers();
return 0;
}