DEV Community

Discussion on: Using SDL2: Opening a Window

Collapse
 
powerc9000 profile image
Clay Murray

Your window update call should be outside the PollEvent loop. You keep polling events from the OS until you have none then do your drawing.

You have it correct in other parts

wiki.libsdl.org/SDL_PollEvent