def swap_buffers(self):
if not self.window.context:<EOL><INDENT>return<EOL><DEDENT>self.frames += <NUM_LIT:1><EOL>self.window.flip()<EOL>self.window.dispatch_events()<EOL>
Swap buffers, increment frame counter and pull events