Texture Binding with Delphi

I am trying to do a sample with Delphi. Now i got a problem with my textures. it seems that my programm is not capable of assigning more then one texture.

i use a function to assign a gluint (equiv. is cardinal) to a certain pixmap. the assigned cardinal values do differ, but when i use these values in my render-cycle it seems all textures are either the first or the last assigned

also there is a black gap between the triangles/textures. the texture is ok. nothing on the pixmap.

[This message has been edited by martinzwigl (edited 01-01-2003).]