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:
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?
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?