@galacean/engine-rhi-webgl 2.0.0-alpha.49 → 2.0.0-alpha.50
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 +3 -3
- package/dist/main.js.map +1 -1
- package/dist/module.js +3 -3
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
- package/types/GLBuffer.d.ts +1 -1
- package/types/GLTexture.d.ts +2 -2
- package/types/GLTexture2D.d.ts +1 -1
- package/types/WebGLGraphicDevice.d.ts +5 -5
package/dist/main.js
CHANGED
|
@@ -459,8 +459,8 @@ var GLBuffer = /*#__PURE__*/ function() {
|
|
|
459
459
|
*/ _proto._compatibleInterface = function _compatibleInterface(capabilityType, flatItem) {
|
|
460
460
|
var rhi = this.rhi;
|
|
461
461
|
var gl = rhi.gl;
|
|
462
|
-
var ext =
|
|
463
|
-
if (ext
|
|
462
|
+
var ext = rhi.requireExtension(capabilityType);
|
|
463
|
+
if (ext) {
|
|
464
464
|
for(var glKey in flatItem){
|
|
465
465
|
var extensionKey = flatItem[glKey];
|
|
466
466
|
var extensionVal = ext[extensionKey];
|
|
@@ -1456,7 +1456,7 @@ var GLBuffer = /*#__PURE__*/ function() {
|
|
|
1456
1456
|
throw new Error("If you want to use sRGB color space, only R8G8B8A8 format is supported in RenderTarget");
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
|
-
if (!isDepthTexture && !GLTexture._supportRenderBufferDepthFormat(_depth, rhi)) {
|
|
1459
|
+
if (!isDepthTexture && _depth !== null && !GLTexture._supportRenderBufferDepthFormat(_depth, rhi)) {
|
|
1460
1460
|
throw new Error("TextureFormat is not supported:" + engineCore.TextureFormat[_depth] + " in RenderTarget");
|
|
1461
1461
|
}
|
|
1462
1462
|
if (_colorTextures.length > 1 && !rhi.canIUse(engineCore.GLCapabilityType.drawBuffers)) {
|