aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
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);