@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/module.js
CHANGED
|
@@ -455,8 +455,8 @@ var GLBuffer = /*#__PURE__*/ function() {
|
|
|
455
455
|
*/ _proto._compatibleInterface = function _compatibleInterface(capabilityType, flatItem) {
|
|
456
456
|
var rhi = this.rhi;
|
|
457
457
|
var gl = rhi.gl;
|
|
458
|
-
var ext =
|
|
459
|
-
if (ext
|
|
458
|
+
var ext = rhi.requireExtension(capabilityType);
|
|
459
|
+
if (ext) {
|
|
460
460
|
for(var glKey in flatItem){
|
|
461
461
|
var extensionKey = flatItem[glKey];
|
|
462
462
|
var extensionVal = ext[extensionKey];
|
|
@@ -1452,7 +1452,7 @@ var GLBuffer = /*#__PURE__*/ function() {
|
|
|
1452
1452
|
throw new Error("If you want to use sRGB color space, only R8G8B8A8 format is supported in RenderTarget");
|
|
1453
1453
|
}
|
|
1454
1454
|
}
|
|
1455
|
-
if (!isDepthTexture && !GLTexture._supportRenderBufferDepthFormat(_depth, rhi)) {
|
|
1455
|
+
if (!isDepthTexture && _depth !== null && !GLTexture._supportRenderBufferDepthFormat(_depth, rhi)) {
|
|
1456
1456
|
throw new Error("TextureFormat is not supported:" + TextureFormat[_depth] + " in RenderTarget");
|
|
1457
1457
|
}
|
|
1458
1458
|
if (_colorTextures.length > 1 && !rhi.canIUse(GLCapabilityType.drawBuffers)) {
|