[Interest] How to know bindTexture failure

Calogero Mauceri mauceri at actgate.com
Fri Oct 5 16:46:17 CEST 2012


Hi,

is there a way to know programmatically whether the 
QGLWidget::bindTexture function fails?
Sometime my bindTexture fails, I can see in the log file there is a line 
reporting the binding failure:

texture upload failed, error code 0x500, enum: 3553 (de1)

but the bindTexture returns a valid texture id (> 0) and the 
glGetError() returns 0 (no error).
How do I know the binding has failed from my code?

This is how the bindTexture is called

QImage imgTexture(myImgPath);
int _texture = bindTexture( imgTexture, GL_TEXTURE_2D );


Thanks in advance for your help,
     Calogero


-- 
Calogero Mauceri
Software Engineer

Applied Coherent Technology Corporation (ACT)
www.actgate.com





More information about the Interest mailing list