Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
beee719
Fix safari 0-data buffer setup
dy May 4, 2018
5339bf4
Fix extra logging
dy May 4, 2018
291fab9
Preinit texture with data
dy May 4, 2018
fc8c624
Remove extra comment
dy May 4, 2018
d8b91f5
Fix undefined Dtype
dy May 4, 2018
0b87f34
Add firefox interval timeout
dy May 4, 2018
9a7d9e5
Fix IE context creation
dy May 4, 2018
0703765
Merge branch 'master' into browser-fixes
dy May 14, 2018
16b7628
Use pool to preallocate texture
dy May 14, 2018
34d4b04
Fix test
dy May 14, 2018
50afc01
Add zero-pool for texture data
dy May 15, 2018
462f27c
Remove insignificant checks
dy May 15, 2018
be3326d
Move browser entry to tests
dy May 15, 2018
d18b56a
Move browser entry to test
dy May 15, 2018
1487bd6
Fix losing extension on context loss
dy May 15, 2018
127e0a0
Rename half_float to half_float_oes
dy May 15, 2018
85bef7d
Init zero-data texture on resize
dy May 15, 2018
23ba463
Ignore null allocation
dy May 15, 2018
b6f8d25
Revert test/index
dy May 15, 2018
9938a8e
Fix unsupported premultipliedAlpha in IE
dy May 15, 2018
54db288
Report a safari-specific test failure without halting all tests
May 14, 2018
202e395
Fix formatting
May 14, 2018
c6abb2e
1.3.2
dy May 16, 2018
0aa1b01
Fix links
dy May 16, 2018
d369dbf
Merge branch 'master' into browser-fixes
dy May 16, 2018
ac33e4f
Remove msg from code
dy May 16, 2018
449b5b5
Fix buffer test
dy May 16, 2018
1da66e1
Remove half float allocation - that breaks in safari
dy May 16, 2018
fc418cc
Unroll tests
dy May 16, 2018
0a82ba4
Fix safari framebuffer test
dy May 17, 2018
6afda7c
Display warning reading floats in contexts not supporting the feature
dy May 17, 2018
ad1c6ac
Rename mikolalysenko with regl-project
dy May 17, 2018
1a33343
Fix IE shader issues
dy May 17, 2018
3199462
Fix IE none colorspace test
dy May 17, 2018
617ff84
Add pow2 cube texture check
dy May 17, 2018
87e2ebf
Fix cube FBO test
dy May 17, 2018
b458147
Fix rest of IE tests
dy May 17, 2018
8addf24
Clean up
dy May 17, 2018
7745514
Move feature-detection to limits
dy May 18, 2018
0b31a64
Add API lines
dy May 18, 2018
71bba6c
Rename cubeNpot to npotCubeTexture
dy May 18, 2018
67d4cdd
Rename npotCubeTexture to npotTextureCube
dy May 18, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ module.exports = function wrapBufferState (gl, stats, config, attributeState) {

buffer.bind()
if (!data) {
gl.bufferData(buffer.type, byteLength, usage)
// #475
if (byteLength) gl.bufferData(buffer.type, byteLength, usage)
buffer.dtype = dtype || GL_UNSIGNED_BYTE
buffer.usage = usage
buffer.dimension = dimension
Expand Down
4 changes: 2 additions & 2 deletions test/attributes-nested.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ tape('attributes nested', function (t) {

function checkPixels (expected) {
var actual = regl.read()
console.log('actual: ', actual)
console.log('expected: ', expected)
// console.log('actual: ', actual)
// console.log('expected: ', expected)
for (var i = 0; i < 5 * 5; ++i) {
if (!!actual[4 * i] !== !!expected[i]) {
console.log('fail at: ', i)
Expand Down