Correct limit for bound textures
fixed several bugs in texturing, still WIP, some bugs remaining
some minor stuf here and there
refactoring pointers