fix opengl renderer on older hardware

This commit is contained in:
FunkyFr3sh 2024-09-27 18:11:07 +02:00
parent 57287686db
commit b57ec635fc
2 changed files with 15 additions and 5 deletions

View file

@ -111,6 +111,8 @@ DWORD WINAPI ogl_render_main(void)
{
GL_CHECK(oglu_init());
g_ogl.got_error = g_ogl.got_error || (err = glGetError()) != GL_NO_ERROR;
BOOL got_swap_ctrl;
GL_CHECK(got_swap_ctrl = oglu_ext_exists("WGL_EXT_swap_control", g_ogl.hdc));