add option to create opengl core context

This commit is contained in:
FunkyFr3sh 2022-09-24 01:41:18 +02:00
parent 3b69255158
commit 1186c9cc00
3 changed files with 8 additions and 0 deletions

View file

@ -214,6 +214,11 @@ void oglu_init()
g_oglu_got_version3 = FALSE;
wglCreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC)xwglGetProcAddress("wglCreateContextAttribsARB");
}
if (g_ddraw->opengl_core)
{
wglCreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC)xwglGetProcAddress("wglCreateContextAttribsARB");
}
}
BOOL oglu_ext_exists(char* ext, HDC hdc)