SFML community forums

Help => General => Topic started by: panithadrum on October 10, 2010, 05:37:23 pm

Title: Crash destroying a context
Post by: panithadrum 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: (http://img301.imageshack.us/img301/4917/imagei.png) (http://img301.imageshack.us/i/imagei.png/)

Uploaded with ImageShack.us (http://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.
Title: Crash destroying a context
Post by: Laurent on October 10, 2010, 10:20:07 pm
ATI card?
Title: Crash destroying a context
Post by: panithadrum 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?
Title: Crash destroying a context
Post by: Laurent 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.