struct GLContext::Private
{
- ContextHandle context = 0;
+ ContextHandle context = nullptr;
};
if(!priv->context)
throw unsupported_gl_mode(opts);
- wglMakeCurrent(0, 0);
+ wglMakeCurrent(nullptr, nullptr);
wglDeleteContext(fake_context);
}
else
GLContext::~GLContext()
{
- wglMakeCurrent(0, 0);
+ wglMakeCurrent(nullptr, nullptr);
wglDeleteContext(priv->context);
delete priv;