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

Author Topic: [SOLVED] difference: create new Window and recreate Window  (Read 1381 times)

0 Members and 1 Guest are viewing this topic.

Crossfire

  • Newbie
  • *
  • Posts: 7
    • View Profile
[SOLVED] difference: create new Window and recreate Window
« 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.

Crossfire

  • Newbie
  • *
  • Posts: 7
    • View Profile
[SOLVED] difference: create new Window and recreate Window
« Reply #1 on: March 14, 2009, 02:48:18 pm »
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...

 

anything