From 0e4487d73c3f8917efddb2b872cd2a2cd17aeb7f Mon Sep 17 00:00:00 2001 From: Vladimir Vukicevic Date: Tue, 16 Nov 2010 20:33:03 -0800 Subject: [PATCH] b=612334; fix webgl bind-uniform-location test; r=bjacob --- content/canvas/src/WebGLContext.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/canvas/src/WebGLContext.h b/content/canvas/src/WebGLContext.h index 08fd15e675b..f22f8eb0ab1 100644 --- a/content/canvas/src/WebGLContext.h +++ b/content/canvas/src/WebGLContext.h @@ -236,8 +236,10 @@ private: class WebGLBuffer; struct WebGLVertexAttribData { + // note that these initial values are what GL initializes vertex attribs to WebGLVertexAttribData() - : buf(0), stride(0), size(0), byteOffset(0), type(0), enabled(PR_FALSE), normalized(PR_FALSE) + : buf(0), stride(0), size(4), byteOffset(0), + type(LOCAL_GL_FLOAT), enabled(PR_FALSE), normalized(PR_FALSE) { } WebGLObjectRefPtr buf;