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

Author Topic: [SOLVED] Error opening sf::RenderWindow  (Read 1445 times)

0 Members and 1 Guest are viewing this topic.

Pyrius

  • Newbie
  • *
  • Posts: 39
    • View Profile
[SOLVED] Error opening sf::RenderWindow
« on: December 23, 2011, 11:25:32 pm »
When I run my code, my window appears blank (white), and I get the following error message in the console window: "Failed to share the OpenGL context". I'm statically linking to SFML2 and have an Intel graphics card. I've written a minimal example which reproduces the problem:

Code: [Select]

#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow App(sf::VideoMode(800, 500, 32), "");
}


It worked before, and the only change I made to the code after the last time it worked is the text which a call to std::cout outputs. Any help would be appreciated.

Pyrius

  • Newbie
  • *
  • Posts: 39
    • View Profile
[SOLVED] Error opening sf::RenderWindow
« Reply #1 on: December 24, 2011, 10:22:40 am »
It works again, but I didn't touch anything... oh, well, I just hope it doesn't happen again.