Changing the texture for just one surface

Blitz3D Forums/Blitz3D Programming/Changing the texture for just one surface

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.

I'm having a strange problem. I have a mesh with two surfaces. I want to change the texture for just one of the surfaces and leave the other as it is. I can't see any problems with my code, but it's not working:

B = CreateBrush()
BrushTexture(B, T)
PaintSurface(GetSurface(E, 2), B)
FreeBrush(B)


E is an entity handle, and T is a texture handle. If I set the brush colour to black, the correct surface appears black, but changing the texture doesn't appear to be working, it remains as the original texture.

Anyone know what I'm doing wrong?