0022819: Redesign of OpenGl driver Additional integration
[occt.git] / src / OpenGl / OpenGl_Workspace_2.cxx
index 45e26e0..74745d4 100644 (file)
@@ -482,7 +482,7 @@ Standard_Boolean OpenGl_Workspace::Print
         {
           if (hViewBitmap)
             DeleteObject (hViewBitmap);
-          aFrameBuffer->Release ();
+          aFrameBuffer->Release (GetGlContext());
           hViewBitmap = NULL;
         }
         else