summaryrefslogtreecommitdiff
path: root/src/window
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-10-31 14:01:55 -0500
committersanine-a <sanine.not@pm.me>2020-10-31 14:01:55 -0500
commit50d8b05f588d019a8a5ae1a76d22677b10553167 (patch)
tree6130b4c9367a663f64a9debba47625439e5fb997 /src/window
parenta9f0521984f43f3048d3e0fec15082916e7f8331 (diff)
add basic texture bindings
Diffstat (limited to 'src/window')
-rw-r--r--src/window/window.c3
1 files changed, 3 insertions, 0 deletions
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);