Fixed compilation issues

The texture loader was not working so I eliminated such code in order to make it compile.