0030135: Visualization, TKOpenGl - frame statistics do not include information about...
[occt.git] / src / OpenGl / OpenGl_View_Redraw.cxx
index 6db6934..ff5ce5a 100644 (file)
@@ -1071,6 +1071,7 @@ void OpenGl_View::renderStructs (Graphic3d_Camera::Projection theProjection,
                                  OpenGl_FrameBuffer*          theOitAccumFbo,
                                  const Standard_Boolean       theToDrawImmediate)
 {
+  myZLayers.UpdateCulling (myWorkspace, theToDrawImmediate);
   if ( myZLayers.NbStructures() <= 0 )
     return;
 
@@ -1080,8 +1081,6 @@ void OpenGl_View::renderStructs (Graphic3d_Camera::Projection theProjection,
     myRaytraceInitStatus == OpenGl_RT_FAIL ||
     aCtx->IsFeedback();
 
-  myZLayers.UpdateCulling (myWorkspace, theToDrawImmediate);
-
   if (!toRenderGL)
   {
     toRenderGL = !initRaytraceResources (aCtx) ||