Reduce gpu mem usage

This commit is contained in:
luboslenco
2019-12-12 14:34:11 +01:00
parent a9ef80bc28
commit 636c8c19b1
8 changed files with 144 additions and 148 deletions
+2 -2
View File
@@ -185,7 +185,7 @@ class LayerSlot {
public function applyMask() {
if (texpaint_mask == null) return;
if (Layers.pipe == null) Layers.makePipe();
if (Layers.pipeMerge == null) Layers.makePipe();
Layers.makeTempImg();
// Copy layer to temp
@@ -217,7 +217,7 @@ class LayerSlot {
var l = new LayerSlot();
layers.insert(i, l);
if (Layers.pipe == null) Layers.makePipe();
if (Layers.pipeMerge == null) Layers.makePipe();
l.texpaint.g2.begin(false);
l.texpaint.g2.pipeline = Layers.pipeCopy;
l.texpaint.g2.drawImage(texpaint, 0, 0);