From 8094959a6d0f7085e5edca7f5dca7d20329ae989 Mon Sep 17 00:00:00 2001 From: kgv Date: Wed, 13 Jan 2021 16:31:49 +0300 Subject: [PATCH] # 0032039: fix compiler warning --- src/OpenGl/OpenGl_ShadowMap.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenGl/OpenGl_ShadowMap.cxx b/src/OpenGl/OpenGl_ShadowMap.cxx index 7d8c074558..53d0a8b792 100644 --- a/src/OpenGl/OpenGl_ShadowMap.cxx +++ b/src/OpenGl/OpenGl_ShadowMap.cxx @@ -148,7 +148,7 @@ void OpenGl_ShadowMapArray::Release (OpenGl_Context* theCtx) { if (const Handle(OpenGl_ShadowMap)& aShadow = ChangeValue (anIter)) { - ChangeValue (anIter)->Release (theCtx); + aShadow->Release (theCtx); } } } @@ -164,7 +164,7 @@ Standard_Size OpenGl_ShadowMapArray::EstimatedDataSize() const { if (const Handle(OpenGl_ShadowMap)& aShadow = Value (anIter)) { - aSize += Value (anIter)->EstimatedDataSize(); + aSize += aShadow->EstimatedDataSize(); } } return aSize; -- 2.39.5