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

Author Topic: Fullscreen window becomes white on gaining back focus  (Read 1645 times)

0 Members and 2 Guests are viewing this topic.

black_light_g

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • http://www.theooblog.blogspot.com/
    • Email
Fullscreen window becomes white on gaining back focus
« on: November 05, 2011, 06:52:15 am »
I am just starting with sfml and i'm following the tutorials on your website. In my project i'm using a full-screen window and when I alt-tab back into it, it stops rendering all the sprites and just shows white.

In Direct-x this could be solved by handling for lost devices and reassigning the sprites, is it the same case here?

What is the fix for this, I'll be grateful for any help.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Fullscreen window becomes white on gaining back focus
« Reply #1 on: November 05, 2011, 10:33:36 am »
It should work. Can you provide a complete and minimal example that reproduces the problem?
Laurent Gomila - SFML developer

black_light_g

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • http://www.theooblog.blogspot.com/
    • Email
Fullscreen window becomes white on gaining back focus
« Reply #2 on: November 08, 2011, 12:14:05 pm »
Hey, thanks for your reply.

When I created a simplified version of the program I stopped getting the white screen. Investigating some more I found the problem to be my nested game loops. Sorry to bother you.

Cheers