Skip to content

Commit 12865c3

Browse files
committed
Comment about initial onResize call on glutMainLoop startup
1 parent c192b23 commit 12865c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/libglut.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@ var LibraryGLUT = {
648648
glutMainLoop__proxy: 'sync',
649649
glutMainLoop__deps: ['$GLUT', 'glutPostRedisplay'],
650650
glutMainLoop: () => {
651+
// Do an initial resize, since there's no window resize event on startup
651652
GLUT.onResize();
652653
_glutPostRedisplay();
653654
throw 'unwind';

0 commit comments

Comments
 (0)