mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 03:01:57 +02:00
Turn off OpenGL error checking for performance
This commit is contained in:
@@ -15,7 +15,7 @@ from .constants import appname, str_version, config_dir
|
|||||||
from .boss import Boss
|
from .boss import Boss
|
||||||
from .utils import fork_child, hangup
|
from .utils import fork_child, hangup
|
||||||
from .shaders import GL_VERSION
|
from .shaders import GL_VERSION
|
||||||
from .fast_data_types import glewInit
|
from .fast_data_types import glewInit, enable_automatic_opengl_error_checking
|
||||||
import glfw
|
import glfw
|
||||||
|
|
||||||
|
|
||||||
@@ -89,6 +89,7 @@ def main():
|
|||||||
return
|
return
|
||||||
opts = load_config(args.config)
|
opts = load_config(args.config)
|
||||||
glfw.glfwSetErrorCallback(on_glfw_error)
|
glfw.glfwSetErrorCallback(on_glfw_error)
|
||||||
|
enable_automatic_opengl_error_checking(False)
|
||||||
if not glfw.glfwInit():
|
if not glfw.glfwInit():
|
||||||
raise SystemExit('GLFW initialization failed')
|
raise SystemExit('GLFW initialization failed')
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user