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

Author Topic: Text displayed at massive scale  (Read 1160 times)

0 Members and 1 Guest are viewing this topic.

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
Text displayed at massive scale
« on: November 11, 2011, 12:41:15 pm »
I have a std::map of objects which contain an sf::Font and sf::Text instance.

When I display a string, the very first time it is displayed, it's displayed on a massive scale and corrupts the rest of the window. I have debugged it and can see nothing wrong. All data in the sf::Text object is exactly correct (i.e. the scale is not some crazy value).

There appears to be some other garbage displayed at the same time, a portion of which I can see in the top left of my window.

Has anyone else seen this?
SFML 2.1

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Text displayed at massive scale
« Reply #1 on: November 11, 2011, 02:35:28 pm »
You should try to extract a complete and minimal example that reproduces the problem.
Laurent Gomila - SFML developer

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
Text displayed at massive scale
« Reply #2 on: November 11, 2011, 11:17:20 pm »
After many hours of investigation, it turns out that it's nothing to do with text.
I removed all Draw calls in my text manager class....and it still happens!

It occurs when a sprite (seemingly any sprite) is displayed in my main render loop. Which is strange.

I will keep investigating.
SFML 2.1