1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +03:00

0027728: Visualization, OpenGl_Text - handle correctly object local transformation

OpenGl_Context::ApplyWorldViewMatrix() - reset ModelWorld matrix to identity for consistency with FFP.
This commit is contained in:
kgv
2016-07-30 15:06:23 +03:00
committed by bugmaster
parent c6f530b8d9
commit 458e3c0deb
2 changed files with 5 additions and 9 deletions

View File

@@ -70,6 +70,7 @@ IMPLEMENT_STANDARD_RTTIEXT(OpenGl_Context,Standard_Transient)
namespace
{
static const Handle(OpenGl_Resource) NULL_GL_RESOURCE;
static const OpenGl_Mat4 THE_IDENTITY_MATRIX;
}
// =======================================================================
@@ -2879,6 +2880,7 @@ void OpenGl_Context::ApplyWorldViewMatrix()
if (!myShaderManager->IsEmpty())
{
myShaderManager->UpdateModelWorldStateTo (THE_IDENTITY_MATRIX);
myShaderManager->UpdateWorldViewStateTo (WorldViewState.Current());
}
}