Fix rendering lines instead of texture