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

Author Topic: "no valid domains remain!" output on stderr when using sf::RenderTexture  (Read 3062 times)

0 Members and 1 Guest are viewing this topic.

R0mai

  • Newbie
  • *
  • Posts: 4
    • View Profile

Hi guys!

I've run into a mysterious problem.
Compiling this following code under linux, with gcc 4.6.3 using SFML 2.0 produces strange output to stderr and doesn't draw the texture:

Code:
#include <SFML/Graphics.hpp>

int main() {
   sf::RenderWindow window(sf::VideoMode(800,600,32), "test");

   sf::RenderTexture texture;

   texture.create(40, 50);
   texture.clear(sf::Color::Blue);

   texture.display();
   window.draw(sf::Sprite(texture.getTexture()));

}


Output (on stderr):
no valid domains remain!
no valid domains remain!
no valid domains remain!


What makes it hard to track down where the output comes from is that if I comment out any of the lines :
  • texture.create(40, 50);
  • texture.clear(sf::Color::Blue);
  • window.draw(sf::Sprite(texture.getTexture()));
the strange output disappears.

Compiling this on windows works as expected.

Does anyone has any idea where do I start to look for the solution?

If you need any more info about my environment, let me know.

Thanks,
R0mai

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
You can try another graphics driver.
Laurent Gomila - SFML developer

R0mai

  • Newbie
  • *
  • Posts: 4
    • View Profile
I replaced the nouveau driver with new NVIDIA driver, and now everything is good.

Thanks :)

 

anything