libobs-opengl: Fix glGetError() infinite loop
glGetError() returns GL_INVALID_OPERATION during OBS shutdown when GL is used on Windows. This change gives up after eight errors. This could be avoided by stopping the graphics thread before window destruction, but the shutdown code looks like it could be tricky to reorder.
Showing
想要评论请 注册 或 登录