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

Author Topic: Changing window mode causes crash in linux.  (Read 1284 times)

0 Members and 1 Guest are viewing this topic.

vidjogamer

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
Changing window mode causes crash in linux.
« on: April 06, 2011, 07:29:02 pm »
SFML 2.0
Works perfectly fine on WinXP.

Code: [Select]

if(Event.Key.Code == sf::Key::Num1)
{

VideoMode videoMode = sf::VideoMode::GetDesktopMode();
ContextSettings windowSettings = sf::ContextSettings(0,0,0);

if(winMode == FULLSCREEN)
{
window->Create(videoMode, "GameEngine", sf::Style::Default|sf::Style::Close, windowSettings);
windowMode = WINDOW;
window->EnableVerticalSync(true);
}
else if(winMode == WINDOW)
{
window->Create(videoMode, "GameEngine", sf::Style::Fullscreen|sf::Style::Close, windowSettings);
windowMode = FULLSCREEN;
window->EnableVerticalSync(true);
}
}

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Changing window mode causes crash in linux.
« Reply #1 on: April 06, 2011, 07:32:35 pm »
Can you run gdb and show me the call stack?
Laurent Gomila - SFML developer

vidjogamer

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
Changing window mode causes crash in linux.
« Reply #2 on: April 07, 2011, 04:50:39 pm »
Sorry, Im not going to have access to my linux machine for a few days.