Fixes a small bug when using textures directly. Textures where different despite having the same hash.