1
Window / Re: Strange window.pollEvent(event) performance problem - Win 8.1
« on: November 19, 2013, 06:14:52 pm »
No, I don't. Even if I leave the loop empty, the problem occurs. If I delete it - it's fixed.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
sf::Text txt(char* text, int size, sf::Color color, int x, int y)
{
sf::Text txt;
txt.setFont(font);
txt.setString(text);
txt.setCharacterSize(size);
txt.setColor(color);
txt.setPosition(x, y);
return txt;
}
Of course it's displayed this way:window.draw(txt("text", 12, sf::Color::White, 0, 0));
It's causing program to crash while it's closing:Unhandled exception at 0x76fb59a6 in Offensive.exe: 0xC0000005: Access violation reading location 0xfeeefef6.