Skip to content

Commit

Permalink
obviousAlexC/penPlus: revert accidentally reversions (#1338)
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Orangemoon authored Feb 29, 2024
1 parent 9e31d7f commit 813d438
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions extensions/obviousAlexC/penPlus.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,22 @@
renderer.dirty = true;
},
exit: () => {
gl.clear(gl.DEPTH_BUFFER_BIT);
inDrawRegion = false;
gl.bindFramebuffer(
gl.FRAMEBUFFER,
renderer._allSkins[renderer._penSkinId]._framebuffer.framebuffer
);

triFunctions.drawOnScreen();

//Quick clear the pen+ frame buffer
gl.bindFramebuffer(gl.FRAMEBUFFER, triFrameBuffer);
gl.clear(gl.COLOR_BUFFER_BIT);

gl.bindFramebuffer(
gl.FRAMEBUFFER,
renderer._allSkins[renderer._penSkinId]._framebuffer.framebuffer
);
gl.useProgram(penPlusShaders.pen.program);
},
};
Expand Down Expand Up @@ -1860,8 +1869,7 @@
x3: x3,
y3: y3,
},
util,
true
util
);

this.drawSolidTri(
Expand All @@ -1873,8 +1881,7 @@
x3: x4,
y3: y4,
},
util,
true
util
);
}
squareTexDown({ tex }, util) {
Expand Down Expand Up @@ -2001,8 +2008,7 @@
y3: y3,
tex: tex,
},
util,
true
util
);

triangleAttributesOfAllSprites[Attribute_ID][0] =
Expand All @@ -2029,8 +2035,7 @@
y3: y4,
tex: tex,
},
util,
true
util
);
}
setStampAttribute({ target, number }, util) {
Expand Down

0 comments on commit 813d438

Please sign in to comment.