From 8f01bbd3d9776f238010fb37fab34ed7bfdc1b8a Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 18 Apr 2009 12:38:09 +0000 Subject: [PATCH] compiler warnings --- panda/src/pgraph/renderState.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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) {