diff options
author | Daosheng Mu <daoshengmu@gmail.com> | 2016-05-26 19:01:10 +0800 |
---|---|---|
committer | Daosheng Mu <daoshengmu@gmail.com> | 2016-06-02 02:43:28 +0800 |
commit | 9dab66912449dcf3c03206426a68353bc6add201 (patch) | |
tree | 475671d6986d3b01256f6cf5e491ed37366b1255 /components/script/dom | |
parent | bc9c4b1cbaccb0e50216dd5b792e56ff42d2c0c0 (diff) | |
download | servo-9dab66912449dcf3c03206426a68353bc6add201.tar.gz servo-9dab66912449dcf3c03206426a68353bc6add201.zip |
Enable texSubImage2D API
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/webidls/WebGLRenderingContext.webidl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/webidls/WebGLRenderingContext.webidl b/components/script/dom/webidls/WebGLRenderingContext.webidl index 3ed1c8cdb31..679fedf354b 100644 --- a/components/script/dom/webidls/WebGLRenderingContext.webidl +++ b/components/script/dom/webidls/WebGLRenderingContext.webidl @@ -646,11 +646,11 @@ interface WebGLRenderingContextBase void texParameterf(GLenum target, GLenum pname, GLfloat param); void texParameteri(GLenum target, GLenum pname, GLint param); - //void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, - // GLsizei width, GLsizei height, - // GLenum format, GLenum type, ArrayBufferView? pixels); - //void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, - // GLenum format, GLenum type, TexImageSource? source); // May throw DOMException + void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, + GLsizei width, GLsizei height, + GLenum format, GLenum type, optional object data); + void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, + GLenum format, GLenum type, TexImageSource? source); // May throw DOMException void uniform1f(WebGLUniformLocation? location, GLfloat x); //void uniform1fv(WebGLUniformLocation? location, Float32Array v); |