-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WebGL] Emulate glMapBuffer API in WebGL backend.
- glMapBufferRange is supported in GLES 3 but not in WebGL 2, so we emulate it by manually mapping the GL buffer data to CPU memory space. - Use <webgl/webgl2.h> header instead of <GLES/gl32.h>, since WebGL 2.0 is based on GLES 3.0; This also enables glGetBufferSubData(), which is supported in WebGL 2 but not in GLES 3. - Added more assertions of unimplemented functions in GLProfile namespace for WebGL and GLES backends.
- Loading branch information
1 parent
1b25809
commit 03ca533
Showing
5 changed files
with
107 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters