scissor timer

This commit is contained in:
David Rose 2008-11-14 02:18:21 +00:00
parent 55098c79a5
commit 9aff32ab79
3 changed files with 3 additions and 0 deletions

View File

@ -97,6 +97,7 @@ PStatCollector GraphicsStateGuardian::_draw_set_state_material_pcollector("Draw:
PStatCollector GraphicsStateGuardian::_draw_set_state_light_pcollector("Draw:Set State:Light");
PStatCollector GraphicsStateGuardian::_draw_set_state_stencil_pcollector("Draw:Set State:Stencil");
PStatCollector GraphicsStateGuardian::_draw_set_state_fog_pcollector("Draw:Set State:Fog");
PStatCollector GraphicsStateGuardian::_draw_set_state_scissor_pcollector("Draw:Set State:Scissor");
PT(TextureStage) GraphicsStateGuardian::_alpha_scale_texture_stage = NULL;

View File

@ -488,6 +488,7 @@ public:
static PStatCollector _draw_set_state_light_pcollector;
static PStatCollector _draw_set_state_stencil_pcollector;
static PStatCollector _draw_set_state_fog_pcollector;
static PStatCollector _draw_set_state_scissor_pcollector;
private:
int _num_lights_enabled;

View File

@ -1438,6 +1438,7 @@ set_state_and_transform(const RenderState *target,
}
if (_target._scissor != _state._scissor) {
PStatTimer timer(_draw_set_state_scissor_pcollector);
do_issue_scissor();
_state._scissor = _target._scissor;
}