Turn off OpenGL error checking for performance
This commit is contained in:
parent
58a7331b9f
commit
cc85acea1d
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user