Skip to content

Commit

Permalink
Tell the OS we dont use depth and stencil buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Nov 24, 2017
1 parent b61c959 commit 6751cb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kitty/glfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ create_os_window(PyObject UNUSED *self, PyObject *args) {
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, OPENGL_REQUIRED_VERSION_MINOR);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, true);
glfwWindowHint(GLFW_SAMPLES, 0);
// We dont use depth and stencil buffers
glfwWindowHint(GLFW_DEPTH_BITS, 0);
glfwWindowHint(GLFW_STENCIL_BITS, 0);
#ifdef __APPLE__
if (OPT(macos_hide_titlebar)) glfwWindowHint(GLFW_DECORATED, false);
#endif
Expand Down

0 comments on commit 6751cb5

Please sign in to comment.