void MakeWGLContext(int depthBits, int stencilBits, int samples)
{
/*...*/
if(pass == 0) {
HGLRC hRC = wglCreateContext(hDC);
wglMakeCurrent(hDC, s_openGLContext);
if(!gladLoadGL()){
RLOG("Failed to load all OpenGL functions");
exit(-1);
}
if(!gladLoadWGL(hDC)){
RLOG("Failed to load Wiggle API");
exit(-1);
}
if ("GLAD_GL_VERSION_2_1") enhanced_mode=true;
wglMakeCurrent(NULL, NULL);
}
/*...*/
}
void MakeWGLContext(int depthBits, int stencilBits, int samples)
{
/*...*/
if(pass == 0) {
HGLRC hRC = wglCreateContext(hDC);
wglMakeCurrent(hDC, s_openGLContext);
glewInit();
if (glewIsSupported("GL_VERSION_2_1")) enhanced_mode=true;
wglMakeCurrent(NULL, NULL);
}
/*...*/
}