Fixed the window resizing bug.

For some strange reason, the device resource release routines weren't
getting called. Instead, the whole World object was being deleted.
Weird.