It was passing the light direction that was causing the error after all, not loading the texture... Fixed the former.