aboutsummaryrefslogtreecommitdiff
path: root/src/glfw.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-05-13 13:05:33 +0200
committerCharles <sircharlesaze@gmail.com>2020-05-13 13:05:33 +0200
commit0267b512527b85af6cd815bb9215bd659b75931e (patch)
tree3f798f9e4b89f84d5e11ae820329e15f3c1e351d /src/glfw.c
parent5635d61927b2fc864d92f9f7b40cdb164eeab275 (diff)
downloadscop-0267b512527b85af6cd815bb9215bd659b75931e.tar.gz
scop-0267b512527b85af6cd815bb9215bd659b75931e.tar.bz2
scop-0267b512527b85af6cd815bb9215bd659b75931e.zip
Added basic color
Diffstat (limited to 'src/glfw.c')
-rw-r--r--src/glfw.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/glfw.c b/src/glfw.c
index 585f24f..69699b5 100644
--- a/src/glfw.c
+++ b/src/glfw.c
@@ -6,7 +6,7 @@
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/05/11 01:58:00 by charles #+# #+# */
-/* Updated: 2020/05/12 19:05:43 by charles ### ########.fr */
+/* Updated: 2020/05/13 12:54:59 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -45,6 +45,7 @@ GLFWwindow *glfw_init(int width, int height)
return (NULL);
}
glfwSwapInterval(1);
- /* glViewport(0, 0, width, height); */
+ GL_CALL(glViewport(0, 0, width, height));
+ GL_CALL(glEnable(GL_DEPTH_TEST));
return (window);
}