https://bugs.freedesktop.org/show_bug.cgi?id=49817
--- Comment #2 from Cédric Legrand legrand.cedric.01@gmail.com 2012-06-06 11:44:24 UTC --- Here is a piece of C++ code which may help in solving the bug :
///////////////////////////////////////////////////////////
//////////// Class Game : ////////////
Game::Game() : renderWindow(sf::VideoMode(800,600),"") ...
void Game::inGame() { ... testMap.createRender(this); ... }
void Game::showSprite(sf::Sprite& sprite) { renderWindow.draw(sprite); }
/////////// Class Map : ///////////
void Map::createRender(Game* parent) { ... parent->showSprite(tilesFiles[nbTileset]); //tilesFiles is an sfml sprite ... }
///////////////////////////////////////////////////////////
With this code, the same garbage and errors happen.
//// I'm sorry for my english ////