X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fcgl%2Fglcontext.cpp;h=9cddf38795cbe378961ba3f5c3f542b00b7d6e25;hb=bc1a38d6d2c966a6aee74e483ca7a7d37a56909e;hp=4d51052175902d85db9805ee34a2c0c81aaae135;hpb=171f2b47008522ad7e950dc67447a08406f4888d;p=libs%2Fgui.git diff --git a/source/graphics/cgl/glcontext.cpp b/source/graphics/cgl/glcontext.cpp index 4d51052..9cddf38 100644 --- a/source/graphics/cgl/glcontext.cpp +++ b/source/graphics/cgl/glcontext.cpp @@ -1,8 +1,8 @@ +#include "glcontext.h" #include #include #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,6 +67,11 @@ GLContext::~GLContext() delete priv; } +void GLContext::set_swap_interval(unsigned) +{ + // TODO +} + void GLContext::swap_buffers() { flush_gl_buffer(priv->context);