Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Meakk committed Oct 15, 2024
1 parent 10eeafb commit d5b2c41
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions library/src/window_impl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,13 @@ window_impl::window_impl(const options& options, const std::optional<Type>& type
{
oglRenWin->SetOpenGLSymbolLoader(&internals::SymbolLoader, &this->Internals->GetProcAddress);
}
// We need to call vtkOpenGLRenderWindow function because vtkGenericOpenGLRenderWindow is reimplementing it incorrectly
oglRenWin->vtkOpenGLRenderWindow::OpenGLInit();
#if F3D_MODULE_EXTERNAL_RENDERING
if (oglRenWin->IsA("vtkExternalOpenGLRenderWindow"))
{
// We need to call vtkOpenGLRenderWindow function because vtkGenericOpenGLRenderWindow is reimplementing it incorrectly
oglRenWin->vtkOpenGLRenderWindow::OpenGLInit();
}
#endif
}
#endif

Expand Down

0 comments on commit d5b2c41

Please sign in to comment.