# glTexImage not working if window is iconified

**URL:** https://discourse.glfw.org/t/glteximage-not-working-if-window-is-iconified/492
**Category:** support
**Created:** [June 1, 2009, 9:11am UTC](https://discourse.glfw.org/t/glteximage-not-working-if-window-is-iconified/492 "2009-06-01T09:11:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)
#### Post date: [June 1, 2009, 9:11am UTC](https://discourse.glfw.org/t/glteximage-not-working-if-window-is-iconified/492/1 "2009-06-01T09:11:50Z")

</div>

**[joemue2](https://sourceforge.net/u/joemue2/)** wrote on [Monday, June 01, 2009](https://sourceforge.net/p/glfw/discussion/247562/thread/3cd2b870/#a7ea):

Hi!  
If i use glTexImage2D when the window is iconified, no texture data is set. The texture stays black, although OpenGL does not set an error code.  
If i create my own opengl context and do not use GLFW, it works perfect. Tried SDL also - no problem there.  
So there is something GLFW seems to make wrong. Can someone figure out?  
Regards,  
Joe

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)
#### Post date: [June 1, 2009, 8:07pm UTC](https://discourse.glfw.org/t/glteximage-not-working-if-window-is-iconified/492/2 "2009-06-01T20:07:32Z")

</div>

**[bmateusz](https://sourceforge.net/u/bmateusz/)** wrote on [Monday, June 01, 2009](https://sourceforge.net/p/glfw/discussion/247562/thread/3cd2b870/#a7ea/0f09):

No problems at me with iconified windows and texture loading. Of course there can be a bug, which doesn’t appear on my computer.  
Do you load the textures after glfwInit() and glfwOpenWindow() ? Did you glEnable(GL\_TEXTURE\_2D) ?
