Skip to content

Commit 83edb3c

Browse files
committed
Fix bug in shader uniform checking
1 parent 8f80968 commit 83edb3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/src/skia/types/Shader/Shader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const processUniforms = (
4040
for (let i = 0; i < uniformsCount; i++) {
4141
const name = source.getUniformName(i);
4242
const value = uniforms[name];
43-
if (!value === undefined) {
43+
if (value === undefined) {
4444
throw new Error(
4545
// eslint-disable-next-line max-len
4646
`The runtime effect has the uniform value "${name}" declared, but it is missing from the uniforms property of the Runtime effect.`

0 commit comments

Comments
 (0)