mirror of
https://github.com/glfw/glfw.git
synced 2026-01-11 15:23:17 +01:00
Make tests and examples use glad
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
//
|
||||
//========================================================================
|
||||
|
||||
#include <glad/glad.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -170,6 +171,7 @@ int main(int argc, char** argv)
|
||||
}
|
||||
|
||||
glfwMakeContextCurrent(window);
|
||||
gladLoadGLLoader((GLADloadproc) glfwGetProcAddress);
|
||||
set_swap_interval(window, 0);
|
||||
|
||||
last_time = glfwGetTime();
|
||||
|
||||
Reference in New Issue
Block a user