Latest SDL2 rendering black screen

I just downloaded the latest SDL2 from mercurial and when I compile the various demo projects, they all seem to compile fine but when the demo projects are run, they all seem to just give a black screen. If I put a printf in rectangles.c’s render function, I can see that it is rendering when it should be, but nothing seems to actually make it to the screen, neither on the device nor on the simulator.

Has anyone else experienced this? Is this indicative of a bug in SDL, an outdated demo project, or something else?

What platform?On Tue, Jul 31, 2012 at 12:20 PM, Trev wrote:

**
I just downloaded the latest SDL2 from mercurial and when I compile the
various demo projects, they all seem to compile fine but when the demo
projects are run, they all seem to just give a black screen. If I put a
printf in rectangles.c’s render function, I can see that it is rendering
when it should be, but nothing seems to actually make it to the screen,
neither on the device nor on the simulator.

Has anyone else experienced this? Is this indicative of a bug in SDL, an
outdated demo project, or something else?


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

My iPad is the new iPad running the latest iPad OS, and I’ve simulated the iPad and iPhone, retina or non-retina, and the result is always a black screen.
I’m using Xcode 4.4 to compile and I just got the latest SDL2 earlier today, so I know I am up to date.

Have you tried getting the latest SDL2 from mercurial, and have you been able to render anything to a screen with any of the demo projects?

Not sure if this is the problem but if you look in the patches that have been added to the SDL project, Sam added untested patch. I tested it the same day and got black screen just like you. He had ask me if I revert to old SDL before patch if it works and I said yes. So i’m assuming it still has the same problem. You should try to download the project from SDL website and see if that one works.

Trev wrote:> My iPad is the new iPad running the latest iPad OS, and I’ve simulated the iPad and iPhone, retina or non-retina, and the result is always a black screen (everything after the SDL loading image).

I’m using Xcode 4.4 to compile and I just got the latest SDL2 earlier today, so I know I am up to date. My computer is running Mac OS 10.8.

Have you tried getting the latest SDL2 from mercurial, and have you been able to render anything to a screen with any of the demo projects?

Ok, glad to know I wasn’t just doing something wrong.

Regarding downloading SDL from the website, exactly where else is SDL2 being hosted besides the mercurial site?
http://www.libsdl.org/download-1.2.php and http://www.libsdl.org/release/ don’t seem to have SDL2.

http://www.libsdl.org/hg.php

Trev wrote:> Ok, glad to know I wasn’t just doing something wrong.

Regarding downloading SDL from the website, exactly where else is SDL2 being hosted besides the mercurial site?
http://www.libsdl.org/download-1.2.php and http://www.libsdl.org/release/ don’t seem to have SDL2.

stevo5800 wrote:

http://www.libsdl.org/hg.php

Trev wrote:

Ok, glad to know I wasn’t just doing something wrong.

Regarding downloading SDL from the website, exactly where else is SDL2 being hosted besides the mercurial site?
http://www.libsdl.org/download-1.2.php and http://www.libsdl.org/release/ don’t seem to have SDL2.

Did you try the SDL2 linked there? It still just renders the black screen for me.

Try now. I think I just fixed it. :)On Tue, Jul 31, 2012 at 7:48 PM, Trev wrote:

**

stevo5800 wrote:

http://www.libsdl.org/hg.php

Trev wrote:

Ok, glad to know I wasn’t just doing something wrong.

Regarding downloading SDL from the website, exactly where else is SDL2
being hosted besides the mercurial site?
http://www.libsdl.org/download-1.2.php and http://www.libsdl.org/release/don’t seem to have SDL2.

Did you try the SDL2 linked there? It still just renders the black screen
for me.


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

Sam Lantinga wrote:

Try now. ?I think I just fixed it. :slight_smile:

It does indeed work now.

And that’s why Sam is the man.

Yay! :)On Tue, Jul 31, 2012 at 8:55 PM, Trev wrote:

**

Sam Lantinga wrote:

Try now. I think I just fixed it. [image: Smile]

It does indeed work now.

And that’s why Sam is the man.


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

Thanks the game center banner is now working properly also

Sam Lantinga wrote:> Yay! :slight_smile:

On Tue, Jul 31, 2012 at 8:55 PM, Trev <trevor at lackeyccg.com (trevor at lackeyccg.com)> wrote:

Sam Lantinga wrote:

Try now. ?I think I just fixed it. [Image: http://forums.libsdl.org/images/smiles/icon_smile.gif ]

It does indeed work now.

And that’s why Sam is the man.


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