Commit 17d4ef9
committed
Hide dummy OGRE render window on macOS
The initialization render window created by Ogre2RenderEngine for GPU
resource setup (HLMS, compositor) was visible on macOS as a blank
'OgreWindow(0)_0' window. This window serves no purpose after
initialization and can be safely closed by the user without affecting
rendering.
Two changes:
1. Pass params["hidden"] = "true" when creating the dummy window.
Both Metal (OgreMetalWindow) and GL3Plus (OgreOSXCocoaWindow)
backends already support this parameter.
2. Guard _setVisible(true) to only apply to real render windows
(width/height > 1), preventing the dummy window from being
re-shown after creation.
Tested on macOS 26 (Tahoe) with Apple M4, Gazebo Harmonic 8.10.0
via conda-forge/RoboStack packages.
Signed-off-by: Aldrin Inbaraj <aldrininbaraj@gmail.com>
Generated-by: Claude (Anthropic)1 parent de3911f commit 17d4ef9
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1222 | 1222 | | |
1223 | 1223 | | |
1224 | 1224 | | |
| 1225 | + | |
1225 | 1226 | | |
1226 | 1227 | | |
1227 | 1228 | | |
| |||
1299 | 1300 | | |
1300 | 1301 | | |
1301 | 1302 | | |
1302 | | - | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
1303 | 1308 | | |
1304 | | - | |
1305 | | - | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
1306 | 1312 | | |
1307 | 1313 | | |
1308 | 1314 | | |
| |||
0 commit comments