mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0024867: Visualization - polygon offsets look broken
If specific layer setting is not enabled, default value extracted from current OpenGl state will be used. Default value fix. Updated test case bugs/vis/bug24867 Linux warning fixed.
This commit is contained in:
@@ -175,7 +175,7 @@ OpenGl_Workspace::OpenGl_Workspace (const Handle(Aspect_DisplayConnection)& theD
|
||||
StructureMatrix_applied (&myDefaultMatrix),
|
||||
myCullingMode (TelCullUndefined),
|
||||
myModelViewMatrix (myDefaultMatrix),
|
||||
PolygonOffset_applied (NULL)
|
||||
PolygonOffset_applied (THE_DEFAULT_POFFSET)
|
||||
{
|
||||
myGlContext->core11fwd->glPixelStorei (GL_UNPACK_ALIGNMENT, 1);
|
||||
|
||||
@@ -278,7 +278,7 @@ void OpenGl_Workspace::ResetAppliedAspect()
|
||||
AspectText_applied = NULL;
|
||||
TextParam_set = &myDefaultTextParam;
|
||||
TextParam_applied = NULL;
|
||||
PolygonOffset_applied = NULL;
|
||||
PolygonOffset_applied = THE_DEFAULT_POFFSET;
|
||||
myCullingMode = TelCullUndefined;
|
||||
|
||||
AspectLine(Standard_True);
|
||||
|
Reference in New Issue
Block a user