Skip to content

Commit

Permalink
always use the renderFrame's winId()
Browse files Browse the repository at this point in the history
  • Loading branch information
wjwwood committed Mar 19, 2015
1 parent 6d52c5b commit 463f8f5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/rviz/ogre_helpers/render_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,7 @@ RenderWidget::RenderWidget( RenderSystem* render_system, QWidget *parent )
mainLayout->addWidget(this->renderFrame);
this->setLayout(mainLayout);

#ifdef Q_OS_MAC
uintptr_t win_id = winId();
#else
unsigned int win_id = renderFrame->winId();
#endif
WId win_id = this->renderFrame->winId();
QApplication::flush();
QApplication::syncX();
render_window_ = render_system_->makeRenderWindow(win_id, width(), height());
Expand Down

0 comments on commit 463f8f5

Please sign in to comment.