Mercurial > sdl-ios-xcode
diff Xcode-iPhoneOS/Demos/src/fireworks.c @ 5211:78db79f5a4e2
Updated the iPhone demos for the new API
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 06 Feb 2011 09:02:10 -0800 |
parents | 06c7423f8c60 |
children |
line wrap: on
line diff
--- a/Xcode-iPhoneOS/Demos/src/fireworks.c Sun Feb 06 08:57:29 2011 -0800 +++ b/Xcode-iPhoneOS/Demos/src/fireworks.c Sun Feb 06 09:02:10 2011 -0800 @@ -173,9 +173,6 @@ /* draw our particles! */ glDrawArrays(GL_POINTS, 0, num_active_particles); - /* update screen */ - SDL_RenderPresent(); - } /* @@ -437,6 +434,7 @@ } stepParticles(); drawParticles(); + SDL_GL_SwapWindow(window); endFrame = SDL_GetTicks(); /* figure out how much time we have left, and then sleep */