veandco / go-sdl2-examples

This is where all go-sdl2 examples are stored
91 stars 34 forks source link

Window is not visible #4

Closed jendave closed 3 years ago

jendave commented 5 years ago

I am running the examples on MacOS Mojave and the window never appears even though the app icon shows the app is running in the task bar. If I call sdl.PollEvent() or sdl.PumpEvents() just before the sdl.Delay(2000) line, then the window displays just fine. This happens for all of the examples that do not use an event loop.

veeableful commented 5 years ago

Nice find @jendave! Thanks for the tip and the fix. It seems to be occuring on the C examples too. I have updated the examples to include the fix.

jendave commented 5 years ago

Thanks! I added a PR for the "render" example.

veeableful commented 5 years ago

Ahh thanks!