Made sgLoop call sgWindowHandleEvents().

Removed that call from sgWindowSwapBuffers().