Textured Poly > 4 sides.

BlitzMax Forums/BlitzMax OpenGL Programming/Textured Poly > 4 sides.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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.