Skip to content

Commit cbf1574

Browse files
committed
Set default size to 1
1 parent 079dbcc commit cbf1574

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/renderer/webgl/WebGLShader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ var WebGLShader = new Class({
168168
var element = attributes[i];
169169

170170
var name = element.name;
171-
var size = element.size; // i.e. 1 for a float, 2 for a vec2, 4 for a vec4, etc
171+
var size = GetFastValue(element, 'size', 1); // i.e. 1 for a float, 2 for a vec2, 4 for a vec4, etc
172172
var glType = GetFastValue(element, 'type', WEBGL_CONST.FLOAT);
173173
var type = glType.enum; // The GLenum
174174
var typeSize = glType.size; // The size in bytes of the type

0 commit comments

Comments
 (0)