comparison pytouhou/ui/opengl/backend.pyx @ 617:a6af3ff86612

Change all “void except *” function into “bint except True”, to prevent PyErr_Occurred() from being called at each call.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 29 Mar 2015 00:08:20 +0100
parents 73f134f84c7f
children 80687f258001
comparison
equal deleted inserted replaced
616:4ce3ef053a25 617:a6af3ff86612
44 #TODO: check for framebuffer/renderbuffer support. 44 #TODO: check for framebuffer/renderbuffer support.
45 45
46 from pytouhou.ui.opengl.gamerenderer import GameRenderer 46 from pytouhou.ui.opengl.gamerenderer import GameRenderer
47 47
48 48
49 cdef void discover_features() except *: 49 cdef bint discover_features() except True:
50 '''Discover which features are supported by our context.''' 50 '''Discover which features are supported by our context.'''
51 51
52 global use_debug_group, use_vao, use_primitive_restart, use_framebuffer_blit, use_pack_invert, use_scaled_rendering 52 global use_debug_group, use_vao, use_primitive_restart, use_framebuffer_blit, use_pack_invert, use_scaled_rendering
53 global primitive_mode 53 global primitive_mode
54 global shader_header 54 global shader_header