From 6751cb507331d0e252d8034d7e12de0ec4993135 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 24 Nov 2017 09:48:19 +0530 Subject: [PATCH] Tell the OS we dont use depth and stencil buffers --- kitty/glfw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kitty/glfw.c b/kitty/glfw.c index dbfb4cf930f..43915db1932 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -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