From 663aa1bf52efcf010bd6ca85474477bdb646d4ad Mon Sep 17 00:00:00 2001 From: coulsonwang Date: Wed, 28 Oct 2020 18:24:23 +0800 Subject: [PATCH] fix native memory pool (#7615) --- cocos/core/pipeline/index.ts | 2 ++ cocos/core/renderer/core/memory-pools.ts | 2 +- cocos/core/splash-screen.ts | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cocos/core/pipeline/index.ts b/cocos/core/pipeline/index.ts index 174e5fc7b9..f28052b27d 100644 --- a/cocos/core/pipeline/index.ts +++ b/cocos/core/pipeline/index.ts @@ -6,6 +6,8 @@ import * as pipeline from './define'; export { pipeline }; +export * from './pass-phase'; + export { RenderPipeline } from './render-pipeline'; export { RenderFlow } from './render-flow'; export { RenderStage } from './render-stage'; diff --git a/cocos/core/renderer/core/memory-pools.ts b/cocos/core/renderer/core/memory-pools.ts index 8ffeb2e2ec..21b0d6d3e0 100644 --- a/cocos/core/renderer/core/memory-pools.ts +++ b/cocos/core/renderer/core/memory-pools.ts @@ -869,7 +869,7 @@ const cameraViewDataType: BufferDataTypeManifest = { [CameraView.FRUSTUM]: BufferDataType.UINT32, [CameraView.FORWARD]: BufferDataType.FLOAT32, [CameraView.POSITION]: BufferDataType.FLOAT32, - [CameraView.VIEW_PORT]: BufferDataType.UINT32, + [CameraView.VIEW_PORT]: BufferDataType.FLOAT32, [CameraView.CLEAR_COLOR]: BufferDataType.FLOAT32, [CameraView.MAT_VIEW]: BufferDataType.FLOAT32, [CameraView.MAT_VIEW_PROJ]: BufferDataType.FLOAT32, diff --git a/cocos/core/splash-screen.ts b/cocos/core/splash-screen.ts index 326e119a88..40b84e239c 100644 --- a/cocos/core/splash-screen.ts +++ b/cocos/core/splash-screen.ts @@ -394,7 +394,7 @@ export class SplashScreen { private initCMD () { const device = this.device as GFXDevice; - this.renderArea = new GFXRect(0, 0, device.width, device.height); + this.renderArea = new GFXRect(0, 0, device.nativeWidth, device.nativeHeight); this.framebuffer = this.root.mainWindow!.framebuffer; this.cmdBuff = device.commandBuffer;