WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
295729
copyExternalImageToTexture swizzles texture incorrectly
https://bugs.webkit.org/show_bug.cgi?id=295729
Summary
copyExternalImageToTexture swizzles texture incorrectly
castano
Reported
2025-07-10 11:49:47 PDT
Created
attachment 475865
[details]
problematic texture The attached "Ground037_1K-PNG_Color.png" texture is not swizzled correctly and shows a blue tint when loaded through `copyExternalImageToTexture`. However, when loading the texture manually and updating it with `writeTexture` the results are correct. See the attached screenshot. You can see the problem in the following website:
https://ludicon.com/sparkjs/
Select or upload the attached image, and press original to see the version of the texture created with `copyExternalImageToTexture`. This issue only occurs in WebKit. Chrome and Firefox produce the expected results.
Attachments
problematic texture
(2.50 MB, image/png)
2025-07-10 11:49 PDT
,
castano
no flags
Details
Safari left, Chrome right
(4.10 MB, image/heic)
2025-07-10 13:20 PDT
,
Mike Wyrzykowski
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-07-10 13:15:10 PDT
<
rdar://problem/155552869
>
Mike Wyrzykowski
Comment 2
2025-07-10 13:20:13 PDT
Created
attachment 475867
[details]
Safari left, Chrome right Does this reproduce on Safari Technology Preview 223? I see the attached image in latest Safari compared to Chrome canary Version 140.0.7287.0 (Official Build) canary (arm64) It looks the same but maybe I'm missing a repro step?
castano
Comment 3
2025-07-11 00:33:13 PDT
Apologies, I should have stated the Safari version I was testing: "Version 18.5 (20621.2.5.11.8)". I just tried with the Technology Preview 223 and I'm not able to reproduce the issue anymore.
castano
Comment 4
2025-07-11 00:34:05 PDT
Actually, looks like I mistakenly reported the issue on the wrong version. Sorry!
Mike Wyrzykowski
Comment 5
2025-07-11 08:18:20 PDT
No problem, glad it is fixed :)
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug