Iphone black screen

I am trying to get a small test app up and running, using the latest sdl 1.3
compiled from the official hg.libsdl.org/SDL repo.

The app runs in the simulator, I can set the status bar to be hidden, and it
responds to rotation events. The problem I’m having is that I am getting a
blank (black) screen.

Anybody got any ideas what’s going wrong? Maybe a problem with the render
context or something? I’ve googled the issue, can’t seem to find anything
related.

my code is here: http://pastebin.com/rXhzBr14

Any help much appreciated.

Dave

(Don’t mind me, I’m trying to catch up on unanswered email…)

Anybody got any ideas what’s going wrong? Maybe a problem with the
render context or something? I’ve googled the issue, can’t seem to find
anything related.

my code is here: http://pastebin.com/rXhzBr14

You probably fixed this in the last month, but in case you didn’t: you
need an SDL_GL_SwapWindow(win) call in there after the glClear().
Drawing in OpenGL doesn’t present to the screen until you swap framebuffers.

–ryan.