Change Texture on mesh does not work

Blitz3D Forums/Blitz3D Programming/Change Texture on mesh does not work

Not true at all

Graphics3D 640,480,32,2
cam = CreateCamera()
lit = CreateLight()
cube = CreateCube()
PositionEntity lit,0,0,-10
PositionEntity cam,0,0,-10
t1=LoadTexture("shingle.png") 
EntityTexture cube,t1

While Not KeyDown(1)

 If KeyDown(16) Then
   FreeTexture t1 
   t2=LoadTexture("max.png") 
   EntityTexture cube,t2 
 EndIf

 RenderWorld
 Flip
Wend
End


Works perfectly here! Perhaps posting a more complete code sample which demonstrates the problem. It's easy to miss something obvious!