comparison pytouhou/ui/opengl/gamerenderer.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 4b0593da29d5
children e15672733c93
comparison
equal deleted inserted replaced
586:4b0593da29d5 587:6c9d8a3d853f
97 if use_debug_group: 97 if use_debug_group:
98 glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, -1, "Scaled rendering") 98 glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, -1, "Scaled rendering")
99 99
100 self.passthrough_shader.bind() 100 self.passthrough_shader.bind()
101 self.passthrough_shader.uniform_matrix('mvp', self.interface_mvp) 101 self.passthrough_shader.uniform_matrix('mvp', self.interface_mvp)
102 self.render_framebuffer(self.framebuffer) 102 self.framebuffer.render(self.x, self.y, self.width, self.height)
103 103
104 if use_debug_group: 104 if use_debug_group:
105 glPopDebugGroup() 105 glPopDebugGroup()
106 106
107 107