PDA

View Full Version : Problem using texture on QT



09-11-2003, 12:06 AM
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.

09-11-2003, 11:35 AM
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.