(gl, ext)
| 14963 | } |
| 14964 | |
| 14965 | function lazyInitColorAttachments(gl, ext) { |
| 14966 | var maxColorAttachments = gl.getParameter(ext.MAX_COLOR_ATTACHMENTS_WEBGL) |
| 14967 | colorAttachmentArrays = new Array(maxColorAttachments + 1) |
| 14968 | for(var i=0; i<=maxColorAttachments; ++i) { |
| 14969 | var x = new Array(maxColorAttachments) |
| 14970 | for(var j=0; j<i; ++j) { |
| 14971 | x[j] = gl.COLOR_ATTACHMENT0 + j |
| 14972 | } |
| 14973 | for(var j=i; j<maxColorAttachments; ++j) { |
| 14974 | x[j] = gl.NONE |
| 14975 | } |
| 14976 | colorAttachmentArrays[i] = x |
| 14977 | } |
| 14978 | } |
| 14979 | |
| 14980 | //Throw an appropriate error |
| 14981 | function throwFBOError(status) { |
no outgoing calls
no test coverage detected
searching dependent graphs…