make array non static to support multithreaded
parent
8b4e066ca5
commit
dd1d10407e
|
@ -99,7 +99,6 @@ ObjFile::Model *ObjFileParser::GetModel() const {
|
||||||
}
|
}
|
||||||
void ignoreNewLines(IOStreamBuffer<char> &streamBuffer, std::vector<char> &buffer)
|
void ignoreNewLines(IOStreamBuffer<char> &streamBuffer, std::vector<char> &buffer)
|
||||||
{
|
{
|
||||||
static std::vector<char> tempBuf;
|
|
||||||
auto curPosition = buffer.begin();
|
auto curPosition = buffer.begin();
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
@ -109,6 +108,7 @@ void ignoreNewLines(IOStreamBuffer<char> &streamBuffer, std::vector<char> &buffe
|
||||||
}
|
}
|
||||||
if (*curPosition=='\\')
|
if (*curPosition=='\\')
|
||||||
{
|
{
|
||||||
|
std::vector<char> tempBuf;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
streamBuffer.getNextLine(tempBuf);
|
streamBuffer.getNextLine(tempBuf);
|
||||||
|
|
Loading…
Reference in New Issue