Skip to content

Commit 9d28955

Browse files
committed
Fix setting gIsMyShader
1 parent f77097f commit 9d28955

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## ShaderToy extension changelog (major changes only):
22

3+
- 0.13.247 (22-02-2022)
4+
5+
- Fix marking shader as owned.
6+
37
- 0.13.215 (30-11-2020)
48

59
- Add code completion and color picker extentions to code editor

app/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "Shadertoy unofficial plugin.",
4-
"version": "0.13.247",
4+
"version": "0.13.249",
55
"description": "Shadertoy.com unofficial plugin.",
66
"homepage_url": "https://github.com/patuwwy/ShaderToy-Chrome-Plugin",
77
"background": {

app/shadertoy-plugin.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1058,18 +1058,19 @@
10581058
LOCALSTORAGE_SHADER_FORK_KEYNAME
10591059
);
10601060

1061-
window.gIsMyShader = true;
10621061
if (!storedShader) {
10631062
return;
10641063
}
10651064

1065+
window.gIsMyShader = true;
1066+
10661067
try {
10671068
gShaderToy.mEffect.mGLContext = null;
10681069
gShaderToy.mEffect.DestroyPass(0);
10691070

10701071
setTimeout(function() {
10711072
while(gShaderToy.mEffect.mPasses.length) {
1072-
gShaderToy.mEffect.DestroyPass(0);
1073+
gShaderToy.mEffect.DestroyPass(0);
10731074
}
10741075

10751076
window.iLoadShader([JSON.parse(storedShader)]);

0 commit comments

Comments
 (0)