]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/egl_android/glcontext.cpp
Fix a memory leak
[libs/gui.git] / source / graphics / egl_android / glcontext.cpp
index ecf9a63f29342515c6ec1be24a03e6f5bd995dd7..7853b217a36df35e76862f5511836786133b0038 100644 (file)
@@ -109,16 +109,19 @@ GLContext::~GLContext()
        delete priv;
 }
 
-void GLContext::swap_buffers()
+void GLContext::set_swap_interval(unsigned)
 {
-       eglSwapBuffers(priv->display, priv->surface);
+       // TODO
 }
 
-void GLContext::window_resized(unsigned w, unsigned h)
+void GLContext::swap_buffers()
 {
-       glViewport(0, 0, w, h);
+       eglSwapBuffers(priv->display, priv->surface);
 }
 
+void GLContext::window_resized(unsigned, unsigned)
+{ }
+
 
 void GLContext::Private::attach(WindowHandle native_window)
 {