Check for required extensions
This commit is contained in:
+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user