add init value for flag

This commit is contained in:
Huabing.Xu 2014-08-08 13:47:50 +08:00
parent e7e94ffe70
commit be4bcf7c36
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ VertexData::~VertexData()
void VertexData::use() void VertexData::use()
{ {
uint32_t flags; uint32_t flags(0);
for(auto& element : _vertexStreams) for(auto& element : _vertexStreams)
{ {
flags = flags | (1 << element.second._stream._semantic); flags = flags | (1 << element.second._stream._semantic);