diff options
Diffstat (limited to 'gltest.c')
-rw-r--r-- | gltest.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -7,10 +7,9 @@ #include "assets.h" #include "eprintf.h" -#include "gldefs.h" +#include "gl.h" #include "glprog.h" #include "linmath.h" -#include "loadgl.h" #include "nelem.h" enum { @@ -33,7 +32,6 @@ void take_input(GLFWwindow *win) int main(int argc, char **argv) { GLFWwindow *win; - int ret; GLuint ebo, vbo, vao, prog; GLint ucolor; struct vertex { @@ -64,9 +62,7 @@ int main(int argc, char **argv) eprintf("Failed to create GLFW window"); glfwMakeContextCurrent(win); - ret = lgl_load((lgl_loadfunc *)glfwGetProcAddress); - if (ret != 0) - eprintf("Failed to load GL: %s", lgl_strerror(ret)); + gl_load((gl_loadfunc *)glfwGetProcAddress); glfwSetFramebufferSizeCallback(win, &fb_size_cb); fb_size_cb(win, WIDTH, HEIGHT); |