changed &= ~STANDARD_SHDATA;
}
+ bool shdata_changed = changed&SHADER_DATA;
+ for(vector<BoundProgramData>::const_iterator i=shdata_stack.begin(); (!shdata_changed && i!=shdata_stack.end()); ++i)
+ shdata_changed = (i->shdata->get_generation()!=i->generation);
bool extra_shdata = (shdata_stack.size()>state->shdata_count);
- if((changed&SHADER_DATA) || shprog_changed || extra_shdata)
+ if(shdata_changed || shprog_changed || extra_shdata)
{
if(extra_shdata)
shdata_stack.erase(shdata_stack.begin()+state->shdata_count, shdata_stack.end());