From 118f3763ddef2fb890b2dfb84fc679f25e523b1f Mon Sep 17 00:00:00 2001 From: ouv Date: Wed, 20 Dec 2017 19:02:44 +0300 Subject: [PATCH] 0004306: Restoring visual state for two GL views --- src/GLViewer/GLViewer_Widget.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/GLViewer/GLViewer_Widget.cxx b/src/GLViewer/GLViewer_Widget.cxx index 165d910a7..4233cf280 100644 --- a/src/GLViewer/GLViewer_Widget.cxx +++ b/src/GLViewer/GLViewer_Widget.cxx @@ -498,7 +498,9 @@ void GLViewer_Widget::resizeGL( int w, int h ) { myWidth = w; myHeight = h; - myViewPort->fitAll(); + // The line below has been commented because it seems to be useless and + // leads to the bug "0004306: Restoring visual state for two GL views". + //myViewPort->fitAll(); myStart = GL_FALSE; } -- 2.39.2