Skip to content

Commit

Permalink
Fix bug in shader uniform checking
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon committed Jan 7, 2024
1 parent 8f80968 commit 83edb3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/src/skia/types/Shader/Shader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const processUniforms = (
for (let i = 0; i < uniformsCount; i++) {
const name = source.getUniformName(i);
const value = uniforms[name];
if (!value === undefined) {
if (value === undefined) {
throw new Error(
// eslint-disable-next-line max-len
`The runtime effect has the uniform value "${name}" declared, but it is missing from the uniforms property of the Runtime effect.`
Expand Down

0 comments on commit 83edb3c

Please sign in to comment.