Comparing version 1.1.1 to 1.1.2
@@ -119,6 +119,6 @@ 'use strict' | ||
} | ||
attributes[name] = {name: info.name, type: type, size: size, data: null} | ||
attributes[name] = {name: info.name, type: type, size: size, data: []} | ||
} | ||
if (!attributes[name]) attributes[name] = {name: name, data: null, type: null, size: null} | ||
if (!attributes[name]) attributes[name] = {name: name, data: [], type: null, size: null} | ||
@@ -125,0 +125,0 @@ attribute = attributes[name]; |
@@ -24,3 +24,4 @@ /** @module gl-util/context */ | ||
depth: false, | ||
stencil: false | ||
stencil: false, | ||
float: false | ||
}, opts); | ||
@@ -27,0 +28,0 @@ |
{ | ||
"name": "gl-util", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Set of practical webgl utils", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
const util = require('./') | ||
const assert = require('assert') | ||
@@ -6,2 +7,5 @@ let gl = util.context({preserveDrawingBuffer: false}) | ||
let attrs = gl.getContextAttributes(); | ||
assert.equal(false, attrs.preserveDrawingBuffer); | ||
let p1 = util.program(gl, ` | ||
@@ -8,0 +12,0 @@ precision mediump float; |
87043
629