File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments