Check for required extensions

This commit is contained in:
Kovid Goyal
2016-10-28 12:32:55 +05:30
parent d00e03ca03
commit fabdebfd89
3 changed files with 17 additions and 2 deletions
+2 -1
View File
@@ -13,7 +13,7 @@ from .config import load_config
from .constants import appname, str_version, config_dir
from .boss import Boss
from .utils import fork_child, hangup
from .shaders import GL_VERSION
from .shaders import GL_VERSION, check_for_required_extensions
import glfw
@@ -52,6 +52,7 @@ def run_app(opts, args):
glfw.glfwSetWindowTitle(window, appname.encode('utf-8'))
try:
glfw.glfwMakeContextCurrent(window)
check_for_required_extensions()
glfw.glfwSwapInterval(1)
boss = Boss(window, window_width, window_height, opts, args)
glfw.glfwSetFramebufferSizeCallback(window, boss.on_window_resize)