فهرست منبع

Engine.createRenderTargetTexture now set the _baseWidth/Height

Loïc Baumann 9 سال پیش
والد
کامیت
03f098d535
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      src/babylon.engine.ts

+ 3 - 1
src/babylon.engine.ts

@@ -1832,6 +1832,8 @@
             if (generateDepthBuffer) {
                 texture._depthBuffer = depthBuffer;
             }
+            texture._baseWidth = width;
+            texture._baseHeight = height;
             texture._width = width;
             texture._height = height;
             texture.isReady = true;
@@ -2450,4 +2452,4 @@
             }
         }
     }
-}
+}