hedgewars/uTextures.pas
changeset 4901 d1e2d82d9ccc
parent 4403 0dfe26f48ec1
child 4976 088d40d8aba2
equal deleted inserted replaced
4900:8ad0e23e6d63 4901:d1e2d82d9ccc
   157     SDL_UnlockSurface(surf);
   157     SDL_UnlockSurface(surf);
   158 
   158 
   159 SetTextureParameters(enableClamp);
   159 SetTextureParameters(enableClamp);
   160 end;
   160 end;
   161 
   161 
       
   162 // deletes texture and frees the memory allocated for it.
       
   163 // if nil is passed nothing is done
   162 procedure FreeTexture(tex: PTexture);
   164 procedure FreeTexture(tex: PTexture);
   163 begin
   165 begin
   164     if tex <> nil then
   166     if tex <> nil then
   165     begin
   167     begin
   166         if tex^.NextTexture <> nil then
   168         if tex^.NextTexture <> nil then