aboutsummaryrefslogtreecommitdiff
path: root/src/glfww.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glfww.c')
-rw-r--r--src/glfww.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/glfww.c b/src/glfww.c
index 6060835..91bf7cd 100644
--- a/src/glfww.c
+++ b/src/glfww.c
@@ -1,5 +1,4 @@
#include <stdio.h>
-#include <GLFW/glfw3.h>
#include "util.h"
#include <unistd.h>
#include <stdlib.h>
@@ -18,7 +17,10 @@ GLFWwindow* glfw_init(){
glfwTerminate();
err("failed to create window",pexit);
}
-
+ glEnableClientState(GL_VERTEX_ARRAY);
+ //glEnableClientState(GL_COLOR_ARRAY);
+ //glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
+ //glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwMakeContextCurrent(window);
int w,h;
glfwGetFramebufferSize(window,&w,&h);