X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FOpenGl%2FOpenGl_Workspace.cxx;h=f4f877418d348e0b5385dcebcd0e4a5e6da326c2;hb=a2af24d1a9e5a4f35749261e95d04ae2f389ccbb;hpb=c6aa2a831759fb50565277c3c9e1d443270adba8 diff --git a/src/OpenGl/OpenGl_Workspace.cxx b/src/OpenGl/OpenGl_Workspace.cxx index 0bc8348bce..f4f877418d 100644 --- a/src/OpenGl/OpenGl_Workspace.cxx +++ b/src/OpenGl/OpenGl_Workspace.cxx @@ -34,21 +34,6 @@ IMPLEMENT_STANDARD_RTTIEXT(OpenGl_Workspace,Standard_Transient) -namespace -{ - static const OpenGl_Vec4 THE_WHITE_COLOR (1.0f, 1.0f, 1.0f, 1.0f); - static const OpenGl_Vec4 THE_BLACK_COLOR (0.0f, 0.0f, 0.0f, 1.0f); - - static const OpenGl_Matrix myDefaultMatrix = - { - {{ 1.0F, 0.0F, 0.0F, 0.0F }, - { 0.0F, 1.0F, 0.0F, 0.0F }, - { 0.0F, 0.0F, 1.0F, 0.0F }, - { 0.0F, 0.0F, 0.0F, 1.0F }} - }; - -} - // ======================================================================= // function : Init // purpose : @@ -133,10 +118,7 @@ OpenGl_Workspace::OpenGl_Workspace (OpenGl_View* theView, const Handle(OpenGl_Wi // myAspectsSet (&myDefaultAspects), // - ViewMatrix_applied (&myDefaultMatrix), - StructureMatrix_applied (&myDefaultMatrix), - myToAllowFaceCulling (false), - myModelViewMatrix (myDefaultMatrix) + myToAllowFaceCulling (false) { if (!myGlContext.IsNull() && myGlContext->MakeCurrent()) { @@ -186,9 +168,6 @@ Standard_Boolean OpenGl_Workspace::Activate() return Standard_False; } - ViewMatrix_applied = &myDefaultMatrix; - StructureMatrix_applied = &myDefaultMatrix; - if (myGlContext->core11ffp == NULL) { if (myGlContext->caps->ffpEnable)