GLTexture(QImage()) may construct an invalid texture, which is going to make GLTexture::bind() and other requests fail.