mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0032935: Visualization, TKOpenGles - use size window within OpenGl_Window::init()
This commit is contained in:
parent
d8bfee7b03
commit
7090725e2b
@ -814,7 +814,8 @@ void OpenGl_Window::init()
|
|||||||
myGlContext->SetDefaultFrameBuffer (aDefFbo);
|
myGlContext->SetDefaultFrameBuffer (aDefFbo);
|
||||||
aDefFbo->BindBuffer (myGlContext);
|
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_WIDTH, &mySize.x());
|
||||||
eglQuerySurface ((EGLDisplay )myGlContext->myDisplay, (EGLSurface )myGlContext->myWindow, EGL_HEIGHT, &mySize.y());
|
eglQuerySurface ((EGLDisplay )myGlContext->myDisplay, (EGLSurface )myGlContext->myWindow, EGL_HEIGHT, &mySize.y());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user