0030748: Visualization - Marker displayed in immediate layer ruins QT Quick view...
authorkgv <kgv@opencascade.com>
Sat, 22 Jun 2019 16:50:10 +0000 (19:50 +0300)
committerkgv <kgv@opencascade.com>
Sat, 22 Jun 2019 16:50:10 +0000 (19:50 +0300)
OpenGl_Workspace::ResetAppliedAspect() now resets active texture unit to GL_TEXTURE0.

src/OpenGl/OpenGl_Workspace.cxx

index 44451b4..adfc490 100644 (file)
@@ -204,6 +204,10 @@ void OpenGl_Workspace::ResetAppliedAspect()
   ApplyAspects();
   myGlContext->SetTypeOfLine (myDefaultAspects.Aspect()->LineType());
   myGlContext->SetLineWidth  (myDefaultAspects.Aspect()->LineWidth());
+  if (myGlContext->core15fwd != NULL)
+  {
+    myGlContext->core15fwd->glActiveTexture (GL_TEXTURE0);
+  }
 }
 
 // =======================================================================