Skip to content

Commit

Permalink
chore: fix broken docs link
Browse files Browse the repository at this point in the history
Need a small change to go through to get the latest cpp commit that didn't make it downstream, downstream.

Diffs=
bd71143bc chore: fix broken docs link (#6360)
2bbc54550 Cleanup gl textures (#6357)
0f08dd379 prevent pointer event propagation to collapsed nested artboards (#6322)

Co-authored-by: Luigi Rosso <[email protected]>
  • Loading branch information
zplata and luigi-rosso committed Dec 14, 2023
1 parent 70a9564 commit 85ff798
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c357e7aa757f23486271df284a5c3aa5643f2ff5
bd71143bc0964a789174f30f01d14fa551e33bb9
12 changes: 11 additions & 1 deletion wasm/js/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ const offscreenWebGL = new (function () {
return _maxRTSize;
};

this.deleteImageTexture = function (texture) {
if (!_gl) {
return;
}
_gl.deleteTexture(texture);
};
this.createImageTexture = function (image) {
if (!initGL()) {
return null;
Expand Down Expand Up @@ -362,8 +368,12 @@ Module["onRuntimeInitialized"] = function () {
this.onComplete = onComplete;
this.onDecode = onDecode;
},
"__destruct": function () {
if (this._texture) {
offscreenWebGL.deleteImageTexture(this._texture);
}
},
"decode": function (bytes) {

var cri = this;
// Question: could .bind(cri);
cri.onDecode && cri.onDecode(cri);
Expand Down
2 changes: 1 addition & 1 deletion wasm/submodules/rive-cpp

0 comments on commit 85ff798

Please sign in to comment.