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

Author Topic: Crash destroying a context  (Read 1999 times)

0 Members and 1 Guest are viewing this topic.

panithadrum

  • Sr. Member
  • ****
  • Posts: 304
    • View Profile
    • Skyrpex@Github
    • Email
Crash destroying a context
« on: October 10, 2010, 05:37:23 pm »
I am using SFML2 (last revision, shared libraries), W7 Home and Visual Studio 2010. I created the project with CMake.

It works fine until the window (or context) is out of scope (when it destroys the GL context). I get this:

Uploaded with ImageShack.us

The problems appears within this code:
Code: [Select]
#include <SFML/Graphics.hpp>
int main() {
sf::RenderWindow Window;
// Or sf::Context Context;
}


I don't know if this is related to some other problems in the forum.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Crash destroying a context
« Reply #1 on: October 10, 2010, 10:20:07 pm »
ATI card?
Laurent Gomila - SFML developer

panithadrum

  • Sr. Member
  • ****
  • Posts: 304
    • View Profile
    • Skyrpex@Github
    • Email
Crash destroying a context
« Reply #2 on: October 11, 2010, 11:25:19 am »
It is a Intel graphics media accelerator 3150. Looks like it suffers like an ATI.

What's the reason of this bug? Just happens with ATI cards?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Crash destroying a context
« Reply #3 on: October 11, 2010, 11:45:20 am »
The reason is the global OpenGL context managed by SFML, which is destroyed at global exit. Apparently ATI/Intel drivers don't like that.
Laurent Gomila - SFML developer

 

anything