From 4f345aedf85d77fdc85ead47b205a5da9eeac0e1 Mon Sep 17 00:00:00 2001 From: Fath11 Date: Fri, 22 Nov 2024 17:56:10 +0800 Subject: [PATCH 1/2] i am pretty sure this is a typo like i am 100% sure this is a typo --- extensions/PenP/v7.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/PenP/v7.js b/extensions/PenP/v7.js index 6b56eea..4a2e195 100644 --- a/extensions/PenP/v7.js +++ b/extensions/PenP/v7.js @@ -265,7 +265,7 @@ gl.shaderSource(vertShader, vert.trim()); gl.compileShader(vertShader); if (!gl.getShaderParameter(vertShader, gl.COMPILE_STATUS)) { - throw gl.getShaderInfoLog(vertShader); + throw gl.getShaderInfoLog(); } } catch (error) { console.error(error); @@ -1204,7 +1204,7 @@ //Search using regex const regexSearcher = new RegExp(`uniform.*${uniformKey}.*;?`); let searchResult = - this.shaders[shaderName].projectData.vertShader.match( + this.shaders[shaderName].projectData.fragShader.match( regexSearcher )[0]; @@ -6290,4 +6290,4 @@ //? A small hack to stop the renderer from immediatly dying. And to allow for immediate use Scratch.extensions.register(new extension()); -})(Scratch); \ No newline at end of file +})(Scratch); From ff016d6f2f4d6607f71a2215f75bfcf5e8214b38 Mon Sep 17 00:00:00 2001 From: Fath11 Date: Fri, 22 Nov 2024 17:59:38 +0800 Subject: [PATCH 2/2] misclick sorry :3 --- extensions/PenP/v7.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/PenP/v7.js b/extensions/PenP/v7.js index 4a2e195..4c7ca2e 100644 --- a/extensions/PenP/v7.js +++ b/extensions/PenP/v7.js @@ -265,7 +265,7 @@ gl.shaderSource(vertShader, vert.trim()); gl.compileShader(vertShader); if (!gl.getShaderParameter(vertShader, gl.COMPILE_STATUS)) { - throw gl.getShaderInfoLog(); + throw gl.getShaderInfoLog(vertShader); } } catch (error) { console.error(error);