Commit 5477d9c
authored
Fix PyrenderViewer black screen on macOS (#630)
On macOS, pyglet.app.run() is not called, so the scheduled
enable_rendering callback was never executed. This caused
_allow_rendering to remain False, making on_draw() return
early without rendering anything.
Enable rendering directly for macOS instead of scheduling it.1 parent 9133965 commit 5477d9c
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
223 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
224 | 227 | | |
225 | 228 | | |
226 | 229 | | |
| |||
0 commit comments