aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-05-16 19:13:05 +0200
committerlonkaars <loek@pipeframe.xyz>2024-05-16 19:13:05 +0200
commit07b820f4575d2108b5675106d3ea16e83c168c22 (patch)
treef886e2089aea67ae18a9ec24c976685b00e006e2 /main.c
parent107684b00d65eac84e4bf2dfd34073d309230d50 (diff)
clean up garbage code i wrote 5 minutes ago
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index c7a156b..0ff0706 100644
--- a/main.c
+++ b/main.c
@@ -4,6 +4,7 @@
#include "shader.h"
#include "die.h"
+#include "config.h"
#include "hello_vert.h"
#include "hello_frag.h"
@@ -45,7 +46,7 @@ int main(int argc, char** argv) {
glfwWindowHint(GLFW_RESIZABLE, GLFW_FALSE);
// initialize window
- GLFWwindow* window = glfwCreateWindow(800, 600, "vis", NULL, NULL);
+ GLFWwindow* window = glfwCreateWindow(WIDTH, HEIGHT, "vis", NULL, NULL);
if (window == NULL)
die("error: could not create window\n");
glfwMakeContextCurrent(window);