Unbroke stuff for osx, fixed deprecated texture useage in shaders