comparison pytouhou/ui/opengl/backend.pyx @ 609:23b9418e4b2f

Remove generic usage of GL_DRAW_FRAMEBUFFER which was introduced in GL 3.0 with framebuffer_blit.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 21 Dec 2014 18:10:23 +0100
parents b7b4a234bf70
children 1b31169dc344
comparison
equal deleted inserted replaced
608:725bd24235a2 609:23b9418e4b2f
89 '''Create a window (using SDL) and an OpenGL context.''' 89 '''Create a window (using SDL) and an OpenGL context.'''
90 90
91 sdl.gl_set_attribute(sdl.GL_CONTEXT_PROFILE_MASK, profile) 91 sdl.gl_set_attribute(sdl.GL_CONTEXT_PROFILE_MASK, profile)
92 sdl.gl_set_attribute(sdl.GL_CONTEXT_MAJOR_VERSION, major) 92 sdl.gl_set_attribute(sdl.GL_CONTEXT_MAJOR_VERSION, major)
93 sdl.gl_set_attribute(sdl.GL_CONTEXT_MINOR_VERSION, minor) 93 sdl.gl_set_attribute(sdl.GL_CONTEXT_MINOR_VERSION, minor)
94 sdl.gl_set_attribute(sdl.GL_DEPTH_SIZE, 24) 94 sdl.gl_set_attribute(sdl.GL_DEPTH_SIZE, 24 if is_legacy else 0)
95 if double_buffer >= 0: 95 if double_buffer >= 0:
96 sdl.gl_set_attribute(sdl.GL_DOUBLEBUFFER, double_buffer) 96 sdl.gl_set_attribute(sdl.GL_DOUBLEBUFFER, double_buffer)
97 97
98 flags = sdl.WINDOW_SHOWN | sdl.WINDOW_OPENGL 98 flags = sdl.WINDOW_SHOWN | sdl.WINDOW_OPENGL
99 if not is_legacy: 99 if not is_legacy: