From 50d8b05f588d019a8a5ae1a76d22677b10553167 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Sat, 31 Oct 2020 14:01:55 -0500 Subject: add basic texture bindings --- src/window/window.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/window') diff --git a/src/window/window.c b/src/window/window.c index 263bd45..37053a4 100644 --- a/src/window/window.c +++ b/src/window/window.c @@ -94,6 +94,9 @@ bool honey_setup_window(lua_State* L) glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + // Enable depth testing + glEnable(GL_DEPTH_TEST); + glfwSetWindowSizeCallback(info->window, honey_glfw_window_resize_callback); glfwSetWindowFocusCallback(info->window, honey_glfw_window_focus_callback); -- cgit v1.2.1