SFML community forums

Help => Graphics => Topic started by: black_light_g on November 05, 2011, 06:52:15 am

Title: Fullscreen window becomes white on gaining back focus
Post by: black_light_g 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.
Title: Fullscreen window becomes white on gaining back focus
Post by: Laurent on November 05, 2011, 10:33:36 am
It should work. Can you provide a complete and minimal example that reproduces the problem?
Title: Fullscreen window becomes white on gaining back focus
Post by: black_light_g 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