Fix polygon drawing on WebGL1
This commit is contained in:
parent
11642b92d1
commit
a0bdd9605a
|
@ -112,15 +112,6 @@ void glGetBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid
|
||||||
}, target, offset, data, size);
|
}, target, offset, data, size);
|
||||||
/* clang-format on */
|
/* clang-format on */
|
||||||
}
|
}
|
||||||
|
|
||||||
void glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data) {
|
|
||||||
|
|
||||||
/* clang-format off */
|
|
||||||
EM_ASM({
|
|
||||||
GLctx.bufferSubData($0, $1, HEAPU8, $2, $3);
|
|
||||||
}, target, offset, data, size);
|
|
||||||
/* clang-format on */
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void glTexStorage2DCustom(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type) {
|
void glTexStorage2DCustom(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type) {
|
||||||
|
|
|
@ -46,7 +46,6 @@
|
||||||
// WebGL 2.0 has no MapBufferRange/UnmapBuffer, but offers a non-ES style BufferSubData API instead.
|
// WebGL 2.0 has no MapBufferRange/UnmapBuffer, but offers a non-ES style BufferSubData API instead.
|
||||||
#ifdef __EMSCRIPTEN__
|
#ifdef __EMSCRIPTEN__
|
||||||
void glGetBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data);
|
void glGetBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data);
|
||||||
void glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class RasterizerCanvasGLES3;
|
class RasterizerCanvasGLES3;
|
||||||
|
|
Loading…
Reference in New Issue