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.
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.