Unfortunately, drawimage doesn't bind the texture so both the drawimage and polygon end up with the texture intended just for the polygon.
glDisable GL_TEXTURE_2D results in white (no textures) images and, if you glEnable it will bind the poly texture again (in this case #1).
Everything I have found suggests you either...
a) glDeleteTextures : But this does exactly that resulting in a white drawimage as it is never rebound.
b) glbind GL_TEXTURE_2D,0 to rebind to the default texture... white again.
I think the glbind can only REALLY be overridden with a glbind to another existing texture. To do this you need to know your texture number.... which I can't find a way to get from Bmax.
glDisable GL_TEXTURE_2D results in white (no textures) images and, if you glEnable it will bind the poly texture again (in this case #1).
Everything I have found suggests you either...
a) glDeleteTextures : But this does exactly that resulting in a white drawimage as it is never rebound.
b) glbind GL_TEXTURE_2D,0 to rebind to the default texture... white again.
I think the glbind can only REALLY be overridden with a glbind to another existing texture. To do this you need to know your texture number.... which I can't find a way to get from Bmax.