Commit 16120cba authored by Andrew Bauer's avatar Andrew Bauer

Initializing the object when SupportsOpenGL() is called.

If the EGL render window object is not initialized before
calling SupportsOpenGL() is called that method incorrectly
returns false.
parent b4c4b77c
Pipeline #7988 passed with stage
......@@ -420,6 +420,7 @@ void vtkEGLRenderWindow::Initialize (void)
this->ResizeWindow(this->Size[0], this->Size[1]);
}
}
this->Initialized = true;
}
void vtkEGLRenderWindow::Finalize (void)
......@@ -551,6 +552,10 @@ void vtkEGLRenderWindow::SetPosition(int x, int y)
int vtkEGLRenderWindow::SupportsOpenGL()
{
if(!this->Initialized)
{
this->Initialize();
}
vtkInternals* impl = this->Internals;
this->MakeCurrent();
if(impl->Display == EGL_NO_DISPLAY && this->OwnWindow)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment