Make sure the swizzling vector is being recreated for each function. This makes

GLSL bricks work.
This commit is contained in:
Zack Rusin 2007-10-26 19:53:53 -04:00 committed by Keith Whitwell
parent 3b25ce9eca
commit abe8cd1917
2 changed files with 5 additions and 5 deletions

View file

@ -383,6 +383,7 @@ void Storage::pushTemps()
}
++i;
}
m_extSwizzleVec = 0;
}
void Storage::popTemps()

View file

@ -106,11 +106,6 @@ private:
llvm::VectorType *m_floatVecType;
llvm::VectorType *m_intVecType;
llvm::Value *m_undefFloatVec;
llvm::Value *m_undefIntVec;
llvm::Value *m_extSwizzleVec;
char m_name[32];
int m_idx;
@ -118,6 +113,10 @@ private:
std::map<int, bool > m_destWriteMap;
llvm::Value *m_undefFloatVec;
llvm::Value *m_undefIntVec;
llvm::Value *m_extSwizzleVec;
struct Args {
llvm::Value *out;
llvm::Value *in;