]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/cgl/glcontext.cpp
Use nullptr in place of 0 or NULL
[libs/gui.git] / source / graphics / cgl / glcontext.cpp
index 748b9b1416eb338a6d21a30b40c0fbdaa7682437..9cddf38795cbe378961ba3f5c3f542b00b7d6e25 100644 (file)
@@ -1,8 +1,8 @@
+#include "glcontext.h"
 #include <vector>
 #include <OpenGL/gl.h>
 #include "cocoaglcontext.h"
 #include "cocoapixelformat.h"
-#include "glcontext.h"
 #include "window_private.h"
 
 using namespace std;
@@ -14,7 +14,7 @@ typedef CocoaGLContext *ContextHandle;
 
 struct GLContext::Private
 {
-       ContextHandle context;
+       ContextHandle context = nullptr;
 };
 
 void GLContext::platform_init(const GLOptions &opts)
@@ -67,12 +67,17 @@ GLContext::~GLContext()
        delete priv;
 }
 
+void GLContext::set_swap_interval(unsigned)
+{
+       // TODO
+}
+
 void GLContext::swap_buffers()
 {
        flush_gl_buffer(priv->context);
 }
 
-void GLContext::window_resized(unsigned w, unsigned h)
+void GLContext::window_resized(unsigned, unsigned)
 {
        // XXX Call [context update] here?
 }