fix error ubo name

This commit is contained in:
jerrywwl
2019-01-04 18:54:36 +08:00
parent 46d48f4601
commit 88f9348dfe
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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" },
],
});