I'm having problems with glTexImage2D on Qt. I'm writing a code where I frequently upload a new data to a texture using glTexImage2D. The problem is that every now and then there seems to small squares where the texture is corrupted, like it didn't upload some tile or something. I have tested this so that I try to feed solid color and still there are parts that are corrupted. So, I'm asking is there some special trick how to use glTexImage2D on QGLWidget or have anybody noticed similar behaviour?

- mika