Fix: [OpenGL] Check maximum supported texture size against screen resolution.

This commit is contained in:
Michael Lutz
2021-04-21 22:06:04 +02:00
parent 5ff15443e9
commit e53313391a
5 changed files with 15 additions and 8 deletions

View File

@@ -1380,7 +1380,7 @@ const char *VideoDriver_Win32OpenGL::AllocateContext()
this->ToggleVsync(_video_vsync);
this->gl_rc = rc;
return OpenGLBackend::Create(&GetOGLProcAddressCallback);
return OpenGLBackend::Create(&GetOGLProcAddressCallback, this->GetScreenSize());
}
bool VideoDriver_Win32OpenGL::ToggleFullscreen(bool full_screen)