SFML community forums

Help => Graphics => Topic started by: wademcgillis on October 30, 2009, 07:27:18 pm

Title: Sprites appear white in Mac OS X
Post by: wademcgillis on October 30, 2009, 07:27:18 pm
For my final project in C++ class, I'm making a TDS using SFML. However, on my mac, sprites show up white.

(http://i157.photobucket.com/albums/t49/whaddsoft/FinalProject_macosx.png)

(http://i157.photobucket.com/albums/t49/whaddsoft/FinalProject_windows.png)

It's the same code and same images on both machines. I'm using SFML 1.5[/img]
Title: Sprites appear white in Mac OS X
Post by: Ceylo on October 30, 2009, 08:06:08 pm
I suppose you are using SFML 1.5, where images cannot but loaded before a window has been made (on Mac OS X) ; and I guess that's your issue. This is because there is a bug that prevents the shared OpenGL context from being activated.

Thus you have two choices :
 - build the SFML frameworks from the sources of the Subversion repository sources
 - make sure you don't load any image before making a window

By the way you should have seen a message in your console explaining the image could not be loaded (size too high or something like that).
Title: Sprites appear white in Mac OS X
Post by: wademcgillis on October 30, 2009, 08:20:02 pm
Oh... thanks :D

edit:
I tried opening the console before I made this post, but my computer froze whenever I open it