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

Author Topic: sf::RenderTexture destructor causes a crash  (Read 13750 times)

0 Members and 1 Guest are viewing this topic.

wogoo

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • Email
Re: sf::RenderTexture destructor causes a crash
« Reply #30 on: October 24, 2013, 10:50:01 am »
Thank you for the reply, so there is nothing that can be done to fix this...

I'm sure it's a 'glDeleteTextures' crash because i tried to call it explicitly, retrieving the texture ID and i got the same crash with the same address corruption.
So the only way to load textures in a different thread is to load only the sf::Image object, set a flag and then in the main thread build the sf::Texture object. Is it correct?


binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: sf::RenderTexture destructor causes a crash
« Reply #31 on: October 24, 2013, 03:19:57 pm »
Yeah... just make sure you call .setActive( true ) on your sf::RenderWindow before doing stuff and everything will land in your sf::RenderWindow's context. Then it really shouldn't be a problem since that only goes when your application closes.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

Fire

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: sf::RenderTexture destructor causes a crash
« Reply #32 on: November 02, 2013, 10:15:26 am »
Since you're the only one to report such an issue, it is likely that there's a problem with your environment rather than in SFML. I have no idea what I could do to help you.
He isn't. Here is my thread with the same issue:
http://en.sfml-dev.org/forums/index.php?topic=11098.0

 

anything