Skip to content

Commit

Permalink
Merge pull request #2125 from Shopify/fix/isVector
Browse files Browse the repository at this point in the history
Fix bug in shader uniform checking
  • Loading branch information
wcandillon authored Jan 7, 2024
2 parents e5c324a + 83edb3c commit cfbfac3
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 cfbfac3

Please sign in to comment.