SFML community forums
Help => Window => Topic started by: Crossfire on March 14, 2009, 01:32:09 pm
-
My problem is, that somehow when I create a new Window (keeping the old one setting it inactive), textures that get loaded by the GUI-System I use won't show anymore.
If I simply recreate the existing window, this problem does not occur.
So I assume there might be some fundamental difference between creating a new and recreating an existing window. What about the RenderContext? When recreating a window, there is also a new RenderContext created, isn't it? So that would be the same for creating a new and recreating one?
Thank you for any hint.
-
I am sorry, but the problem was caused by simple carelessness :oops:
Because, one major difference between creating a new and recreating an existing one (and besides the most obvious ...) is that you have n+1 windows when creating a new one, and only n windows when recreating one...
And my mistake was not calling Show(false) for the previous one...