Commit a5bb61c2 authored by Christopher Tenter's avatar Christopher Tenter
Browse files

Fix shader modifier IDs (having more than 2 modifiers registered resulted in...

Fix shader modifier IDs (having more than 2 modifiers registered resulted in applying the wrong modifiers)

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17849 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6caa5d02
......@@ -1097,9 +1097,9 @@ unsigned int ShaderProgGenerator::registerModifier( ShaderModifier* _modifier )
if (numModifiers_ == 32)
return 0;
modifiers_[numModifiers_++] = _modifier;
_modifier->modifierID_ = (unsigned int)(1 << numModifiers_);
_modifier->modifierID_ = (unsigned int)numModifiers_;
modifiers_[numModifiers_++] = _modifier;
return _modifier->modifierID_;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment