| 656 | } |
| 657 | |
| 658 | GLFWAPI void glfwSwapInterval(int interval) |
| 659 | { |
| 660 | _GLFWwindow* window; |
| 661 | |
| 662 | _GLFW_REQUIRE_INIT(); |
| 663 | |
| 664 | window = _glfwPlatformGetTls(&_glfw.contextSlot); |
| 665 | if (!window) |
| 666 | { |
| 667 | _glfwInputError(GLFW_NO_CURRENT_CONTEXT, |
| 668 | "Cannot set swap interval without a current OpenGL or OpenGL ES context"); |
| 669 | return; |
| 670 | } |
| 671 | |
| 672 | window->context.swapInterval(interval); |
| 673 | } |
| 674 | |
| 675 | GLFWAPI int glfwExtensionSupported(const char* extension) |
| 676 | { |
no test coverage detected