- state->object_lod_bias = b;
-}
-
-void Renderer::push_state()
-{
- state_stack.push_back(state_stack.back());
- state = &state_stack.back();
-}
-
-void Renderer::pop_state()
-{
- if(state_stack.size()==1)
- throw stack_underflow("Renderer::pop_state");
-
- state_stack.pop_back();
- state = &state_stack.back();
- changed |= MATRIX;
-}
-
-void Renderer::end()
-{
- if(state_stack.size()>1)
- throw invalid_operation("Renderer::end");
-
- *state = State();
- shdata_stack.clear();
- add_shader_data(standard_shdata);
-
- commands.use_pipeline(0);