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

Author Topic: Dead view when returning from standby on windows  (Read 1296 times)

0 Members and 1 Guest are viewing this topic.

myl

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • Email
Dead view when returning from standby on windows
« on: June 27, 2013, 05:42:05 pm »
Hey.

I'm experiencing a black screen issue when my windows machine returns from standby. It is not related to my code, because it also happens with the precompiled SFML win32 spinning troll example.

After the view enters this dead state i get an error message when attempting to load textures:
Failed to create texture, its internal size is too high (180x61, maximum is 0x0).

I tried solving it by spawning a new renderwindow (although i would need a way to detect deadness for this approach do any good), but new renderwindows are just as dead.

setActive on RenderWindow does no good.
 
Eergh?
« Last Edit: June 27, 2013, 05:51:44 pm by myl »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Dead view when returning from standby on windows
« Reply #1 on: June 27, 2013, 06:28:00 pm »
I have no idea, I have to test this case.
Laurent Gomila - SFML developer

myl

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • Email
Re: Dead view when returning from standby on windows
« Reply #2 on: June 28, 2013, 02:29:31 pm »
Hey Laurent.

I did some further testing on different setups, and it turns out I can only reproduce the problem when sfml is running in a windows virtual machine (hosted by parallels on os x to be specific). Still wondering if there is a way to recover from this state as I have not had any problems with other opengl apps.

Merci!
myl

 

anything