From 7090725e2b20d77075e4bff422ccec8a78d5bba1 Mon Sep 17 00:00:00 2001 From: kgv Date: Mon, 18 Apr 2022 04:27:35 +0300 Subject: [PATCH] 0032935: Visualization, TKOpenGles - use size window within OpenGl_Window::init() --- src/OpenGl/OpenGl_Window.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OpenGl/OpenGl_Window.cxx b/src/OpenGl/OpenGl_Window.cxx index 601396f81c..e3d22a91e4 100644 --- a/src/OpenGl/OpenGl_Window.cxx +++ b/src/OpenGl/OpenGl_Window.cxx @@ -814,7 +814,8 @@ void OpenGl_Window::init() myGlContext->SetDefaultFrameBuffer (aDefFbo); aDefFbo->BindBuffer (myGlContext); } - else if (!myPlatformWindow->IsVirtual()) + else if (!myPlatformWindow->IsVirtual() + && mySizeWindow == myPlatformWindow) { eglQuerySurface ((EGLDisplay )myGlContext->myDisplay, (EGLSurface )myGlContext->myWindow, EGL_WIDTH, &mySize.x()); eglQuerySurface ((EGLDisplay )myGlContext->myDisplay, (EGLSurface )myGlContext->myWindow, EGL_HEIGHT, &mySize.y());