mirror of
https://github.com/glfw/glfw.git
synced 2026-11-18 12:54:54 +00:00
Make tests and examples use glad
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
|
||||
#include "tinycthread.h"
|
||||
|
||||
#include <glad/glad.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -102,7 +103,14 @@ int main(void)
|
||||
|
||||
glfwSetWindowPos(threads[i].window, 200 + 250 * i, 200);
|
||||
glfwShowWindow(threads[i].window);
|
||||
}
|
||||
|
||||
glfwMakeContextCurrent(threads[0].window);
|
||||
gladLoadGLLoader((GLADloadproc) glfwGetProcAddress);
|
||||
glfwMakeContextCurrent(NULL);
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
if (thrd_create(&threads[i].id, thread_main, threads + i) !=
|
||||
thrd_success)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user