mirror of
https://github.com/glfw/glfw.git
synced 2026-02-17 21:12:34 +01:00
Make tests and examples use glad
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
|
||||
#include "tinycthread.h"
|
||||
|
||||
#include <glad/glad.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#include <math.h>
|
||||
@@ -90,6 +91,7 @@ int main(void)
|
||||
}
|
||||
|
||||
glfwMakeContextCurrent(window);
|
||||
gladLoadGLLoader((GLADloadproc) glfwGetProcAddress);
|
||||
glfwSetKeyCallback(window, key_callback);
|
||||
|
||||
if (thrd_create(&thread, thread_main, NULL) != thrd_success)
|
||||
|
||||
Reference in New Issue
Block a user