зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1170855 - Part 7: Implement MAX_CLIENT_WAIT_TIMEOUT_WEBGL. r=jgilbert, r=smaug
This is a special addition for WebGL 2. I've updated webidl to match the spec. I've set the value to be 0 to match Chrome. If I query the underlying GL, I get -1 back. (On OSX). We can discuss what a better value would be.
This commit is contained in:
Родитель
77b3bd3050
Коммит
23c27a31d7
|
@ -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:
|
||||
|
|
|
@ -310,7 +310,10 @@ interface WebGL2RenderingContext : WebGLRenderingContext
|
|||
const GLenum NUM_SAMPLE_COUNTS = 0x9380;
|
||||
const GLenum TEXTURE_IMMUTABLE_LEVELS = 0x82DF;
|
||||
|
||||
const GLint64 TIMEOUT_IGNORED = -1;
|
||||
const GLuint64 TIMEOUT_IGNORED = 0xFFFFFFFFFFFFFFFF;
|
||||
|
||||
/* WebGL-specific enums */
|
||||
const GLenum MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 0x9247;
|
||||
|
||||
/* Buffer objects */
|
||||
void copyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readOffset,
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче