소스 검색

make array non static to support multithreaded

Amit Cirt 8 년 전
부모
커밋
dd1d10407e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      code/ObjFileParser.cpp

+ 1 - 1
code/ObjFileParser.cpp

@@ -99,7 +99,6 @@ ObjFile::Model *ObjFileParser::GetModel() const {
 }
 void ignoreNewLines(IOStreamBuffer<char> &streamBuffer, std::vector<char> &buffer)
 {
-    static std::vector<char> tempBuf;
     auto curPosition = buffer.begin();
     do
     {
@@ -109,6 +108,7 @@ void ignoreNewLines(IOStreamBuffer<char> &streamBuffer, std::vector<char> &buffe
         }
         if (*curPosition=='\\')
         {
+            std::vector<char> tempBuf;
             do
             {
                 streamBuffer.getNextLine(tempBuf);