Skip to content

Commit

Permalink
Fix buffer test
Browse files Browse the repository at this point in the history
  • Loading branch information
dy committed May 16, 2018
1 parent ac33e4f commit 449b5b5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ tape('buffer arg parsing', function (t) {
t.same(bufferProps[prop], props[prop], prefix + '.' + prop)
})
gl.bindBuffer(gl.ARRAY_BUFFER, bufferProps.buffer)
gl.getBufferParameter(
t.same(gl.getBufferParameter(
gl.ARRAY_BUFFER,
gl.BUFFER_SIZE,
bufferProps.byteLength)
gl.getBufferParameter(
gl.BUFFER_SIZE), bufferProps.byteLength, prefix + ' gl.buffer size')
t.same(gl.getBufferParameter(
gl.ARRAY_BUFFER,
gl.BUFFER_USAGE,
bufferProps.usage)
gl.BUFFER_USAGE), bufferProps.usage, prefix + ' gl.buffer usage')
}

checkProperties(
Expand Down

0 comments on commit 449b5b5

Please sign in to comment.