From 83edb3cb43a68ac5015cf8b1eccca9091f458cfe Mon Sep 17 00:00:00 2001 From: William Candillon Date: Sun, 7 Jan 2024 14:42:26 +0100 Subject: [PATCH] Fix bug in shader uniform checking --- package/src/skia/types/Shader/Shader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/src/skia/types/Shader/Shader.ts b/package/src/skia/types/Shader/Shader.ts index 7f7e01610b..5f198b0685 100644 --- a/package/src/skia/types/Shader/Shader.ts +++ b/package/src/skia/types/Shader/Shader.ts @@ -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.`