X-Git-Url: http://git.tdb.fi/?p=libs%2Fgui.git;a=blobdiff_plain;f=source%2Fgraphics%2Fwgl%2Fglcontext.cpp;fp=source%2Fgraphics%2Fwgl%2Fglcontext.cpp;h=3627a17ff286ca6494c2e81cdf7e6f2051208d25;hp=2791fed5e7cc8e01444cbbdccd6c2dec1f62cc0a;hb=507fa60f32bd3f64840a2cdd1be5d68478432b55;hpb=cea95778acfd6e172639cafd7ad249cc13ceb2a6 diff --git a/source/graphics/wgl/glcontext.cpp b/source/graphics/wgl/glcontext.cpp index 2791fed..3627a17 100644 --- a/source/graphics/wgl/glcontext.cpp +++ b/source/graphics/wgl/glcontext.cpp @@ -26,7 +26,7 @@ typedef HGLRC ContextHandle; struct GLContext::Private { - ContextHandle context = 0; + ContextHandle context = nullptr; }; @@ -107,7 +107,7 @@ void GLContext::platform_init(const GLOptions &opts) if(!priv->context) throw unsupported_gl_mode(opts); - wglMakeCurrent(0, 0); + wglMakeCurrent(nullptr, nullptr); wglDeleteContext(fake_context); } else @@ -119,7 +119,7 @@ void GLContext::platform_init(const GLOptions &opts) GLContext::~GLContext() { - wglMakeCurrent(0, 0); + wglMakeCurrent(nullptr, nullptr); wglDeleteContext(priv->context); delete priv;