Skip to content

Commit 352a60c

Browse files
cut lines up to work with eslint
1 parent c174c4c commit 352a60c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/webgl/p5.Shader.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,8 +1327,16 @@ p5.Shader = class {
13271327
break;
13281328
case gl.SAMPLER_2D:
13291329
if (typeof data == 'number') {
1330-
if (data < gl.TEXTURE0 || data > gl.TEXTURE31 || data === Math.ceil(data)) {
1331-
console.log('🌸 p5.js says: You\'re trying to use a number as the data for a texture. Please use a texture.');
1330+
if (
1331+
data < gl.TEXTURE0 ||
1332+
data > gl.TEXTURE31 ||
1333+
data === Math.ceil(data)
1334+
) {
1335+
console.log(
1336+
'🌸 p5.js says: ' +
1337+
'You\'re trying to use a number as the data for a texture.' +
1338+
'Please use a texture.'
1339+
);
13321340
return this;
13331341
}
13341342
gl.activeTexture(data);

0 commit comments

Comments
 (0)