Empty window on SDL2 for iOS?

Hi everyone,

We’re using SDL2 for Windows, Mac and Linux with great success. I recently
got SDL2 for Android working as well, but when I added SDL2 for iOS
support, I get a window with a size of 0 x 0, and nothing appears to
render. I do not get an error with GL calls, but I do eventually see that
the application exits with no error or message.

Has anyone seen this before?

You can see the code we’re using here, here and here:



Thanks!

Hi again,

I was using “main” instead of “SDL_main”, simple as thatOn Sat, 21 Mar 2015 16:05:19 -0700, Joshua Granick <@Joshua_Granick> wrote:

Hi everyone,

We’re using SDL2 for Windows, Mac and Linux with great success. I
recently got SDL2 for Android working as well, but when I added SDL2 for
iOS support, I get a window with a size of 0 x 0, and nothing appears to
render. I do not get an error with GL calls, but I do eventually see
that the application exits with no error or message.

Has anyone seen this before?

You can see the code we’re using here, here and here:

https://github.com/openfl/lime/blob/master/project/src/backend/sdl/SDLApplication.cpp
https://github.com/openfl/lime/blob/master/project/src/backend/sdl/SDLRenderer.cpp
https://github.com/openfl/lime/blob/master/project/src/backend/sdl/SDLWindow.cpp

Thanks!


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org