It's no longer needed since changes in ProgramData are tracked with a
generation number.
}
}
- flush_shader_data();
+ flush_shader_data_();
shdata_stack.push_back(&d);
state->shdata_count = shdata_stack.size();
changed |= SHADER_DATA;
}
-void Renderer::flush_shader_data()
+void Renderer::flush_shader_data_()
{
if(shdata_stack.size()>state->shdata_count)
shdata_stack.erase(shdata_stack.begin()+state->shdata_count, shdata_stack.end());
Renderer state is popped. */
void add_shader_data(const ProgramData &data);
- void flush_shader_data();
+ DEPRECATED void flush_shader_data() { flush_shader_data_(); }
+private:
+ void flush_shader_data_();
+public:
void set_vertex_setup(const VertexSetup *);
void set_winding_test(const WindingTest *);
void set_reverse_winding(bool);