| 754 | } |
| 755 | |
| 756 | static void ApplyVsync(bool val) { |
| 757 | // Set VSync |
| 758 | if (val) { |
| 759 | /* try late-swap-tearing first. If not supported, try normal vsync. */ |
| 760 | if (SDL_GL_SetSwapInterval(-1) == -1) { |
| 761 | SDL_GL_SetSwapInterval(1); |
| 762 | } |
| 763 | } else { |
| 764 | SDL_GL_SetSwapInterval(0); /* disable vsync. */ |
| 765 | } |
| 766 | } |
| 767 | |
| 768 | void Graphics::SetAnisotropy(float val) { |
| 769 | if (GLAD_GL_EXT_texture_filter_anisotropic) { |
no outgoing calls
no test coverage detected