@galacean/engine-rhi-webgl 1.5.0-alpha.2 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +7 -5
- package/dist/main.js.map +1 -1
- package/dist/module.js +7 -5
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
package/dist/main.js
CHANGED
|
@@ -1556,7 +1556,6 @@ var GLBuffer = /*#__PURE__*/ function() {
|
|
|
1556
1556
|
};
|
|
1557
1557
|
_proto._checkFrameBuffer = function _checkFrameBuffer() {
|
|
1558
1558
|
var gl = this._gl;
|
|
1559
|
-
var isWebGL2 = this._isWebGL2;
|
|
1560
1559
|
var e = gl.checkFramebufferStatus(gl.FRAMEBUFFER);
|
|
1561
1560
|
switch(e){
|
|
1562
1561
|
case gl.FRAMEBUFFER_INCOMPLETE_ATTACHMENT:
|
|
@@ -1566,10 +1565,13 @@ var GLBuffer = /*#__PURE__*/ function() {
|
|
|
1566
1565
|
case gl.FRAMEBUFFER_INCOMPLETE_DIMENSIONS:
|
|
1567
1566
|
throw new Error(" Height and width of the attachment are not the same.");
|
|
1568
1567
|
case gl.FRAMEBUFFER_UNSUPPORTED:
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1568
|
+
// #5.14.3 Event Types in https://registry.khronos.org/webgl/specs/1.0.0/
|
|
1569
|
+
if (!gl.isContextLost()) {
|
|
1570
|
+
throw new Error("The format of the attachment is not supported or if depth and stencil attachments are not the same renderbuffer");
|
|
1571
|
+
}
|
|
1572
|
+
break;
|
|
1573
|
+
case gl.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:
|
|
1574
|
+
throw new Error("The values of gl.RENDERBUFFER_SAMPLES are different among attached renderbuffers, or are non-zero if the attached images are a mix of renderbuffers and textures.");
|
|
1573
1575
|
}
|
|
1574
1576
|
};
|
|
1575
1577
|
return GLRenderTarget;
|