OK. I think I figured it out. When you load a texture, you need to say: texture.SetRepeated(true) This fixes the error message (which only plays that one time). However when you load a font you can't say: font.SetRepeated(true) This creates the error. What was happening in my code was that I was loading a font every frame (inefficient, I know), thus causing the error to appear every frame.
Anyways, here's the code:
#include "SFML\Graphics.hpp"
int main()
{
//Setup
sf::RenderWindow App;
App.Create(sf::VideoMode(800, 600, 32), "OPENGL TEST");
while (App.IsOpen())
{
sf::Event Event;
while (App.PollEvent(Event))
{
// Close window : exit
if (Event.Type == sf::Event::Closed)
{
App.Close();
return EXIT_SUCCESS;
}
}
sf::Font font;
font.LoadFromFile("mizufalp.ttf");
sf::Text text;
text.SetFont(font);
text.SetString("SFML TEST");
App.Clear(sf::Color(0, 0, 0, 255));
App.Draw(text);
App.Display();
}
return EXIT_SUCCESS;
}
[/u]