From 856321af12132fd8546b9aa192316e00ac072323 Mon Sep 17 00:00:00 2001 From: jerrywwl Date: Thu, 14 Mar 2019 20:13:12 +0800 Subject: [PATCH] fix conflicts --- cocos/gfx/webgl/webgl-commands.ts | 2 +- cocos/pipeline/ui/ui-pipeline.ts | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/cocos/gfx/webgl/webgl-commands.ts b/cocos/gfx/webgl/webgl-commands.ts index facc2f5e79..95f6a722a8 100644 --- a/cocos/gfx/webgl/webgl-commands.ts +++ b/cocos/gfx/webgl/webgl-commands.ts @@ -2029,7 +2029,7 @@ export function WebGLCmdFuncExecuteCmds (device: WebGLGFXDevice, cmdPackage: Web const gpuBuffer = gpuInputAssembler.gpuIndexBuffer; if (gpuBuffer) { if (cache.glElementArrayBuffer !== gpuBuffer.glBuffer) { - gl.bindBuffer(WebGL2RenderingContext.ELEMENT_ARRAY_BUFFER, gpuBuffer.glBuffer); + gl.bindBuffer(WebGLRenderingContext.ELEMENT_ARRAY_BUFFER, gpuBuffer.glBuffer); cache.glElementArrayBuffer = gpuBuffer.glBuffer; } } diff --git a/cocos/pipeline/ui/ui-pipeline.ts b/cocos/pipeline/ui/ui-pipeline.ts index c56ce6ef8e..894d735315 100644 --- a/cocos/pipeline/ui/ui-pipeline.ts +++ b/cocos/pipeline/ui/ui-pipeline.ts @@ -46,10 +46,6 @@ export class UIPipeline extends RenderPipeline { _vec4Array[2] = 0.0; _vec4Array[3] = 1.0 / _vec4Array[1]; this._defaultUboGlobal!.view.set(_vec4Array, UBOGlobal.EXPOSURE_OFFSET); -<<<<<<< HEAD -======= - ->>>>>>> 932cada8e62f7fc7f541242899647024c4acf180 // update ubos this._globalBindings.get(UBOGlobal.BLOCK.name)!.buffer!.update(this._defaultUboGlobal!.view.buffer); }