Update GLFW from upstream

Use the new init hint for keyboard debugging
This commit is contained in:
Kovid Goyal
2018-06-22 13:26:41 +05:30
parent 1ce4366972
commit 45b0233f60
10 changed files with 13 additions and 13 deletions

View File

@@ -71,12 +71,8 @@ def load_all_shaders(semi_transparent=0):
def init_glfw(debug_keyboard=False):
glfw_module = 'cocoa' if is_macos else ('wayland' if is_wayland else 'x11')
if debug_keyboard:
os.environ['GLFW_DEBUG_KEYBOARD'] = '1'
if not glfw_init(glfw_path(glfw_module)):
if not glfw_init(glfw_path(glfw_module), debug_keyboard):
raise SystemExit('GLFW initialization failed')
if debug_keyboard:
os.environ.pop('GLFW_DEBUG_KEYBOARD')
return glfw_module