Bug 1170855 - Part 7: Implement MAX_CLIENT_WAIT_TIMEOUT_WEBGL. r=jgilbert, r=smaug

This commit is contained in:
Dan Glastonbury 2015-06-11 14:36:04 +10:00
parent 22b063a531
commit 999f444278
3 changed files with 7 additions and 1 deletions

View File

@ -75,7 +75,9 @@ WebGL2Context::GetParameter(JSContext* cx, GLenum pname, ErrorResult& rv)
}
/* GLint64 */
//case LOCAL_GL_MAX_CLIENT_WAIT_TIMEOUT_WEBGL:
case LOCAL_GL_MAX_CLIENT_WAIT_TIMEOUT_WEBGL:
return JS::NumberValue(0); // TODO
case LOCAL_GL_MAX_ELEMENT_INDEX:
case LOCAL_GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:
case LOCAL_GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:

View File

@ -312,6 +312,9 @@ interface WebGL2RenderingContext : WebGLRenderingContext
const GLint64 TIMEOUT_IGNORED = -1;
/* WebGL-specific enums */
const GLenum MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 0x9247;
/* Buffer objects */
void copyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readOffset,
GLintptr writeOffset, GLsizeiptr size);

View File

@ -2279,6 +2279,7 @@
#define LOCAL_GL_MAX_ATTRIB_STACK_DEPTH 0x0D35
#define LOCAL_GL_MAX_BINDABLE_UNIFORM_SIZE_EXT 0x8DED
#define LOCAL_GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B
#define LOCAL_GL_MAX_CLIENT_WAIT_TIMEOUT_WEBGL 0x9247
#define LOCAL_GL_MAX_CLIPMAP_DEPTH_SGIX 0x8177
#define LOCAL_GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8178
#define LOCAL_GL_MAX_CLIP_DISTANCES 0x0D32