Simple texture mapping example needed

BlitzMax Forums/BlitzMax OpenGL Programming/Simple texture mapping example needed

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.

Embarrassingly, I'm failing to get textured polygons on the screen. I have experience with OpenGL, and I've carefully walked through my code and verified it against the Red Book. Everything is fine, except no textures.

I've also walked through the OpenGL code in the standard Blitz modules, to make sure I'm not missing any Blitz-isms. I even grabbed NeHe tutorial #6 (texture mapping), modified it to work with the latest Blitz (removed FlushMem, changed bgl function names), and I don't see any texture mapping there either.

I'm starting to suspect that something is going on behind the scenes, so if anyone has a super simple, working example of texture mapping in OpenGL, please post the code. Thanks.