diff --git a/panda/src/pgraph/renderState.cxx b/panda/src/pgraph/renderState.cxx index 7ad7098fd3..f5a5a532fc 100644 --- a/panda/src/pgraph/renderState.cxx +++ b/panda/src/pgraph/renderState.cxx @@ -65,8 +65,8 @@ TypeHandle RenderState::_type_handle; //////////////////////////////////////////////////////////////////// RenderState:: RenderState() : - _lock("RenderState"), - _flags(0) + _flags(0), + _lock("RenderState") { // Allocate the _attributes array. RenderAttribRegistry *reg = RenderAttribRegistry::get_global_ptr(); @@ -94,9 +94,9 @@ RenderState() : //////////////////////////////////////////////////////////////////// RenderState:: RenderState(const RenderState ©) : - _lock("RenderState"), _filled_slots(copy._filled_slots), - _flags(0) + _flags(0), + _lock("RenderState") { // Allocate the _attributes array. RenderAttribRegistry *reg = RenderAttribRegistry::get_global_ptr(); @@ -170,7 +170,6 @@ RenderState:: //////////////////////////////////////////////////////////////////// bool RenderState:: operator < (const RenderState &other) const { - RenderAttribRegistry *reg = RenderAttribRegistry::quick_get_global_ptr(); SlotMask mask = _filled_slots | other._filled_slots; int slot = mask.get_lowest_on_bit(); while (slot >= 0) {