Skip to content

Commit

Permalink
HighPy: consider ogre.cfg settings
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Sep 22, 2024
1 parent 78d77a9 commit bb8b756
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Components/Python/HighPy.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ def createRoot(self):
rgm.addResourceLocation(loc, "FileSystem", Ogre.RGN_DEFAULT)

def oneTimeConfig(self):
self.getRoot().restoreConfig()
rs = self.getRoot().getRenderSystemByName("OpenGL 3+ Rendering Subsystem")
#rs.setConfigOption("Debug Layer", "On")
self.getRoot().setRenderSystem(rs)
self.getRoot().saveConfig()
return True

def _create_image_background(scn_mgr, name):
Expand Down

0 comments on commit bb8b756

Please sign in to comment.