From 88f9348dfee8efb5a9366da76a978ca3ef013e93 Mon Sep 17 00:00:00 2001 From: jerrywwl Date: Fri, 4 Jan 2019 18:54:36 +0800 Subject: [PATCH] fix error ubo name --- cocos/gfx/webgl/webgl-commands.ts | 2 +- cocos/pipeline/forward/test-stage.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/gfx/webgl/webgl-commands.ts b/cocos/gfx/webgl/webgl-commands.ts index d1417f5fec..df5e0e6e85 100644 --- a/cocos/gfx/webgl/webgl-commands.ts +++ b/cocos/gfx/webgl/webgl-commands.ts @@ -1938,7 +1938,7 @@ export function WebGLCmdFuncExecuteCmds(device: WebGLGFXDevice, cmdPackage: WebG } for (let a = 0; a < device.maxVertexAttributes; ++a) { - if (device.stateCache.glEnabledAttribLocs[a] != device.stateCache.glCurrentAttribLocs[a]) { + if (device.stateCache.glEnabledAttribLocs[a] !== device.stateCache.glCurrentAttribLocs[a]) { gl.disableVertexAttribArray(a); device.stateCache.glEnabledAttribLocs[a] = false; } diff --git a/cocos/pipeline/forward/test-stage.ts b/cocos/pipeline/forward/test-stage.ts index 715d87dcfa..8a4f67b2e3 100644 --- a/cocos/pipeline/forward/test-stage.ts +++ b/cocos/pipeline/forward/test-stage.ts @@ -101,7 +101,7 @@ export class TestStage extends RenderStage { this._bindingLayout = this._device.createBindingLayout({ bindings: [ - { binding: 5, type: GFXBindingType.UNIFORM_BUFFER, name: "u_color" }, + { binding: 5, type: GFXBindingType.UNIFORM_BUFFER, name: "UBO" }, { binding: 10, type: GFXBindingType.SAMPLER, name: "u_sampler" }, ], });