b=612334; fix webgl bind-uniform-location test; r=bjacob
authorVladimir Vukicevic <vladimir@pobox.com>
Tue, 16 Nov 2010 20:33:03 -0800
changeset 57634 775225b133b3ba7665b84f91b3b2d05f90e4c184
parent 57633 84776327a1037d807614aa08e26a39924020211f
child 57635 25faa99c8fbeb5e1196adc8e6da3975b6aff0883
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersbjacob
bugs612334
milestone2.0b8pre
b=612334; fix webgl bind-uniform-location test; r=bjacob
content/canvas/src/WebGLContext.h
--- a/content/canvas/src/WebGLContext.h
+++ b/content/canvas/src/WebGLContext.h
@@ -231,18 +231,20 @@ private:
             oldPtr->Release();
         }
     }
 };
 
 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<WebGLBuffer> buf;
     WebGLuint stride;
     WebGLuint size;
     GLuint byteOffset;
     GLenum type;
     PRBool enabled;