mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
fix error ubo name
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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" },
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user