Mercurial > touhou
comparison pytouhou/ui/opengl/backend.pyx @ 587:6c9d8a3d853f
Use ARB_framebuffer_blit instead of a second rendering pass for scaled rendering, if supported, and remove framebuffer stuff from the Renderer.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 08 Oct 2014 18:34:27 +0200 |
parents | e0166cda75d5 |
children | 0768122da817 |
comparison
equal
deleted
inserted
replaced
586:4b0593da29d5 | 587:6c9d8a3d853f |
---|---|
52 is_desktop = epoxy_is_desktop_gl() | 52 is_desktop = epoxy_is_desktop_gl() |
53 | 53 |
54 use_debug_group = (is_desktop and version >= 43) or epoxy_has_gl_extension('GL_KHR_debug') | 54 use_debug_group = (is_desktop and version >= 43) or epoxy_has_gl_extension('GL_KHR_debug') |
55 use_vao = (is_desktop and version >= 30) or epoxy_has_gl_extension('GL_ARB_vertex_array_object') | 55 use_vao = (is_desktop and version >= 30) or epoxy_has_gl_extension('GL_ARB_vertex_array_object') |
56 use_primitive_restart = (is_desktop and version >= 31) | 56 use_primitive_restart = (is_desktop and version >= 31) |
57 use_framebuffer_blit = (is_desktop and version >= 30) | |
57 | 58 |
58 if is_desktop: | 59 if is_desktop: |
59 # gl_FragColor isn’t supported anymore starting with GLSL 4.2. | 60 # gl_FragColor isn’t supported anymore starting with GLSL 4.2. |
60 if version >= 42: | 61 if version >= 42: |
61 version = 41 | 62 version = 41 |