Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Sprites appear white in Mac OS X  (Read 1946 times)

0 Members and 1 Guest are viewing this topic.

wademcgillis

  • Newbie
  • *
  • Posts: 36
    • View Profile
Sprites appear white in Mac OS X
« 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.





It's the same code and same images on both machines. I'm using SFML 1.5[/img]

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Sprites appear white in Mac OS X
« Reply #1 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).
Want to play movies in your SFML application? Check out sfeMovie!

wademcgillis

  • Newbie
  • *
  • Posts: 36
    • View Profile
Sprites appear white in Mac OS X
« Reply #2 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