mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-26 10:51:55 +00:00
Turn off OpenGL error checking for performance
This commit is contained in:
parent
58a7331b9f
commit
cc85acea1d
1 changed files with 2 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ from .constants import appname, str_version, config_dir
|
|||
from .boss import Boss
|
||||
from .utils import fork_child, hangup
|
||||
from .shaders import GL_VERSION
|
||||
from .fast_data_types import glewInit
|
||||
from .fast_data_types import glewInit, enable_automatic_opengl_error_checking
|
||||
import glfw
|
||||
|
||||
|
||||
|
|
@ -89,6 +89,7 @@ def main():
|
|||
return
|
||||
opts = load_config(args.config)
|
||||
glfw.glfwSetErrorCallback(on_glfw_error)
|
||||
enable_automatic_opengl_error_checking(False)
|
||||
if not glfw.glfwInit():
|
||||
raise SystemExit('GLFW initialization failed')
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue