Skip to content

Commit 74c271a

Browse files
authored
Update RenderWebGL.js
1 parent 519b4ba commit 74c271a

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

src/RenderWebGL.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2514,21 +2514,17 @@ class RenderWebGL extends EventEmitter {
25142514
});
25152515
}
25162516

2517-
/*if (!this.renderOffscreen && drawable.uniformApplied) Object.assign(uniforms, drawable.getUniforms());
2518-
else {*/
2519-
drawable.uniformApplied = true;
2520-
Object.assign(
2521-
uniforms, drawable.skin.getUniforms(drawableScale), drawable.getUniforms()
2522-
);
2523-
//}
2517+
drawable.uniformApplied = true;
2518+
Object.assign(
2519+
uniforms, drawable.skin.getUniforms(drawableScale), drawable.getUniforms()
2520+
);
25242521

25252522
// Apply extra uniforms after the Drawable's, to allow overwriting.
25262523
if (opts.extraUniforms) Object.assign(uniforms, opts.extraUniforms);
25272524

25282525
if (uniforms.u_skin) {
25292526
twgl.setTextureParameters(gl, uniforms.u_skin, {
2530-
minMag: drawable.skin.useNearest(drawableScale, drawable)
2531-
? gl.NEAREST : gl.LINEAR
2527+
minMag: drawable.skin.useNearest(drawableScale, drawable) ? gl.NEAREST : gl.LINEAR
25322528
});
25332529
}
25342530

0 commit comments

Comments
 (0)