Skip to content

Commit 4c7d817

Browse files
committed
Added minFilter support
1 parent 3dbbc9c commit 4c7d817

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/renderer/webgl/WebGLPipeline.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,17 +363,18 @@ var WebGLPipeline = new Class({
363363
// Create this many default RTs
364364
for (i = 0; i < targets; i++)
365365
{
366-
renderTargets.push(new RenderTarget(this, width, height, 1, true));
366+
renderTargets.push(new RenderTarget(this, width, height, 1, 0, true));
367367
}
368368
}
369369
else if (Array.isArray(targets))
370370
{
371371
for (i = 0; i < targets.length; i++)
372372
{
373373
var scale = GetFastValue(targets[i], 'scale', 1);
374+
var minFilter = GetFastValue(targets[i], 'minFilter', 0);
374375
var autoClear = GetFastValue(targets[i], 'autoClear', 1);
375376

376-
renderTargets.push(new RenderTarget(this, width, height, scale, autoClear));
377+
renderTargets.push(new RenderTarget(this, width, height, scale, minFilter, autoClear));
377378
}
378379
}
379380

0 commit comments

Comments
 (0)