kivy/kivy — pull request #362 by codewarrior0 (2012-01-10 04:01:32+00:00)
Title: Fix window resizing on Windows / Mac OS X.

Remove calls to display.set_mode from resize events, which would reset the GL context each time. It's not necessary to call set_mode after the window is already resized, and I couldn't find any clue about why that code was added. (I used git blame and everything!)

Remove the on_resize call from mainloop(), instead calling update_viewport in WindowBase.__init__ to initially configure the GL. update_viewport is otherwise never called except in response to a resize event.

Please give this patch a try and let me know if there's something I overlooked. I've been using a resizable pygame window with one of my own projects for over a year and I've never had to reinit the GL context in response to a resize.