Skip to content

Commit

Permalink
Added winID to fix second windows in OGRE2.2 (#292)
Browse files Browse the repository at this point in the history
Signed-off-by: ahcorde <[email protected]>
  • Loading branch information
ahcorde authored Sep 30, 2021
1 parent 653b0fb commit ac58762
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/minimal_scene/MinimalScene.cc
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,9 @@ void IgnRenderer::Initialize()

std::map<std::string, std::string> params;
params["useCurrentGLContext"] = "1";
params["winID"] = std::to_string(
ignition::gui::App()->findChild<ignition::gui::MainWindow *>()->
QuickWindow()->winId());
auto engine = rendering::engine(this->engineName, params);
if (!engine)
{
Expand Down
4 changes: 4 additions & 0 deletions src/plugins/scene3d/Scene3D.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,10 @@ void IgnRenderer::Initialize()

std::map<std::string, std::string> params;
params["useCurrentGLContext"] = "1";
params["winID"] = std::to_string(
ignition::gui::App()->findChild<ignition::gui::MainWindow *>()->
QuickWindow()->winId());

auto engine = rendering::engine(this->engineName, params);
if (!engine)
{
Expand Down

0 comments on commit ac58762

Please sign in to comment.