From 56ce1bf86585b98f63432f9aa22bf9ca6a8631ed Mon Sep 17 00:00:00 2001 From: okyanusoz <46757266+okyanusoz@users.noreply.github.com> Date: Fri, 11 Aug 2023 18:08:50 +0300 Subject: [PATCH 1/2] Update webgl-2d-image-processing.html --- webgl/webgl-2d-image-processing.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webgl/webgl-2d-image-processing.html b/webgl/webgl-2d-image-processing.html index 5739a920c..32875d1cc 100644 --- a/webgl/webgl-2d-image-processing.html +++ b/webgl/webgl-2d-image-processing.html @@ -110,7 +110,8 @@ function main() { var image = new Image(); - image.src = "resources/leaves.jpg"; // MUST BE SAME DOMAIN!!! + img.crossOrigin = "*" // allows cross origin images to be displayed, albeit without credentials (e.g. cookies). + image.src = "resources/leaves.jpg"; image.onload = function() { render(image); }; From 3ceebcb80f42e9554ab451bd59667b9ab586a738 Mon Sep 17 00:00:00 2001 From: okyanusoz <46757266+okyanusoz@users.noreply.github.com> Date: Sat, 12 Aug 2023 16:07:59 +0300 Subject: [PATCH 2/2] the semicolon of course --- webgl/webgl-2d-image-processing.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webgl/webgl-2d-image-processing.html b/webgl/webgl-2d-image-processing.html index 32875d1cc..caded03af 100644 --- a/webgl/webgl-2d-image-processing.html +++ b/webgl/webgl-2d-image-processing.html @@ -110,7 +110,7 @@ function main() { var image = new Image(); - img.crossOrigin = "*" // allows cross origin images to be displayed, albeit without credentials (e.g. cookies). + img.crossOrigin = "*"; // allows cross origin images to be displayed, albeit without credentials (e.g. cookies). image.src = "resources/leaves.jpg"; image.onload = function() { render(image);