+#include "glcontext.h"
#include <vector>
#include <windows.h>
#include <GL/gl.h>
#include <GL/wglext.h>
#include <msp/strings/lexicalcast.h>
#include <msp/strings/utils.h>
-#include "glcontext.h"
#include "window_private.h"
using namespace std;
struct GLContext::Private
{
- ContextHandle context;
+ 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;