From 8d3865d870ebbb08f64ab138c643f4dc59027da9 Mon Sep 17 00:00:00 2001 From: kgv Date: Mon, 30 Jun 2014 13:04:55 +0400 Subject: [PATCH] 0025040: Visualization - capping plane is drawn at wrong position when created by copy OpenGl_CappingPlaneResource - use -1 instead of 0 as default uninitialized modification counter. --- src/OpenGl/OpenGl_CappingPlaneResource.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/OpenGl/OpenGl_CappingPlaneResource.cxx b/src/OpenGl/OpenGl_CappingPlaneResource.cxx index 8cb512fad0..c41446d548 100755 --- a/src/OpenGl/OpenGl_CappingPlaneResource.cxx +++ b/src/OpenGl/OpenGl_CappingPlaneResource.cxx @@ -27,10 +27,10 @@ IMPLEMENT_STANDARD_RTTIEXT(OpenGl_CappingPlaneResource, OpenGl_Resource) // ======================================================================= OpenGl_CappingPlaneResource::OpenGl_CappingPlaneResource (const Handle(Graphic3d_ClipPlane)& thePlane) : myOrientation (OpenGl_IdentityMatrix), - myAspect (NULL), - myPlaneRoot (thePlane), - myEquationMod (0), - myAspectMod (0) + myAspect (NULL), + myPlaneRoot (thePlane), + myEquationMod ((unsigned int )-1), + myAspectMod ((unsigned int )-1) {} // ======================================================================= @@ -59,8 +59,8 @@ void OpenGl_CappingPlaneResource::Update (const Handle(OpenGl_Context)& theConte void OpenGl_CappingPlaneResource::Release (const OpenGl_Context* theContext) { OpenGl_Element::Destroy (theContext, myAspect); - myEquationMod = 0; - myAspectMod = 0; + myEquationMod = (unsigned int )-1; + myAspectMod = (unsigned int )-1; } // =======================================================================