Explorar o código

Merge pull request #1162 from nockawa/master

Engine.createRenderTargetTexture now set the _baseWidth/Height
David Catuhe %!s(int64=9) %!d(string=hai) anos
pai
achega
a93b09844f
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/babylon.engine.ts

+ 3 - 1
src/babylon.engine.ts

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