Skip to content

Commit 51e5534

Browse files
committed
Remove a few 'return 0;' where the function is of type void.
1 parent 47201c2 commit 51e5534

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/library_gl.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,25 +1795,25 @@ var LibraryGL = {
17951795
if (!emscriptenWebGLValidateMapBufferTarget(target)) {
17961796
GL.recordError(0x0500/*GL_INVALID_ENUM*/);
17971797
Module.printErr('GL_INVALID_ENUM in glFlushMappedBufferRange');
1798-
return 0;
1798+
return;
17991799
}
18001800

18011801
var mapping = GL.mappedBuffers[emscriptenWebGLGetBufferBinding(target)];
18021802
if (!mapping) {
18031803
GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
18041804
Module.printError('buffer was never mapped in glFlushMappedBufferRange');
1805-
return 0;
1805+
return;
18061806
}
18071807

18081808
if (!(mapping.access & 0x10)) {
18091809
GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
18101810
Module.printError('buffer was not mapped with GL_MAP_FLUSH_EXPLICIT_BIT in glFlushMappedBufferRange');
1811-
return 0;
1811+
return;
18121812
}
18131813
if (offset < 0 || length < 0 || offset + length > mapping.length) {
18141814
GL.recordError(0x0501 /* GL_INVALID_VALUE */);
18151815
Module.printError('invalid range in glFlushMappedBufferRange');
1816-
return 0;
1816+
return;
18171817
}
18181818

18191819
GLctx.bufferSubData(

0 commit comments

Comments
 (0)