Mercurial > touhou
diff pytouhou/ui/opengl/backend.pyx @ 555:98380e4a0ee5
Switch to libepoxy instead of libGLEW, which will help with OpenGL portability.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 19 Apr 2014 19:05:06 +0200 |
parents | 653a9f087673 |
children | c34b23e29d16 |
line wrap: on
line diff
--- a/pytouhou/ui/opengl/backend.pyx +++ b/pytouhou/ui/opengl/backend.pyx @@ -6,9 +6,6 @@ from pytouhou.lib.opengl cimport \ GL_PERSPECTIVE_CORRECTION_HINT, GL_FOG_HINT, GL_NICEST, GL_COLOR_ARRAY, GL_VERTEX_ARRAY, GL_TEXTURE_COORD_ARRAY) -IF USE_GLEW: - from pytouhou.lib.opengl cimport glewInit - GameRenderer = None @@ -49,10 +46,6 @@ def create_window(title, x, y, width, he window = Window(title, x, y, width, height, flags) window.gl_create_context() - if USE_GLEW: - if glewInit() != 0: - raise Exception('GLEW init fail!') - # Initialize OpenGL glEnable(GL_BLEND) if is_legacy: