Skip to content

Commit 5dd44f1

Browse files
authored
example: defines GLAD_GL_IMPLEMENTATION in GLFW example (#464)
1 parent 658f48e commit 5dd44f1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ dist/
1717
/glad-rs/
1818
/rust/
1919
target/
20-
Cargo.lock
20+
Cargo.lock
21+
.vscode/

example/c/gl_glfw.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <stdlib.h>
22
#include <stdio.h>
33

4+
#define GLAD_GL_IMPLEMENTATION // Necessary for headeronly version.
45
#include <glad/gl.h>
56

67
#include <GLFW/glfw3.h>

0 commit comments

Comments
 (0)