Problem using texture on QT

Hi,

i have a strange behaviour with opengl/qt.
When i create texture, i have a code like this :

glGenTextures(1, &tex[0]);
glBindTexture( GL_TEXTURE2D, tex);

QMessageBox::information( “…”…);

glTexImage2D( … );

Unfortunately, when i remove the messagebox, all my textures are blank.

Do you understand what occurs ?

Thanks for your help.

When the message box is removed is a redisplay message sent to the OpenGL application. Perhaps do you forgot to enable something like textures or the image files could be corrupted.

The messagebox call is not important.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.