Skip to content

Commit f7294a6

Browse files
authored
[NFC] Add { } in library_glut.js if statement (#22865)
Followup to #22858
1 parent b3de8a4 commit f7294a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/library_glut.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,9 @@ var LibraryGLUT = {
566566
// TODO: Make glutCreateWindow explicitly aware of whether it is being proxied or not, and set these to true only when proxying is being performed.
567567
GL.enableOffscreenFramebufferAttributes(contextAttributes);
568568
#endif
569-
if (!Browser.createContext(Module['canvas'], /*useWebGL=*/true, /*setInModule=*/true, contextAttributes))
569+
if (!Browser.createContext(Module['canvas'], /*useWebGL=*/true, /*setInModule=*/true, contextAttributes)) {
570570
return 0; // failure
571+
}
571572
return 1; // a new GLUT window ID for the created context
572573
},
573574

0 commit comments

Comments
 (0)