Bug 248543 - Video Texture set to repeat is clamped
Summary: Video Texture set to repeat is clamped
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: Safari 16
Hardware: All iOS 16
: P2 Normal
Assignee: Kimmo Kinnunen
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-11-30 11:44 PST by Kamil Modzelewski
Modified: 2022-12-04 23:48 PST (History)
4 users (show)

See Also:


Attachments
Tiled video texture set to repeat safari vs chrome (2.70 MB, video/quicktime)
2022-11-30 11:44 PST, Kamil Modzelewski
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kamil Modzelewski 2022-11-30 11:44:38 PST
Created attachment 463809 [details]
Tiled video texture set to repeat safari vs chrome

When setting power of two video texture to repeat (gl.REPEAT) the texture will be clamped instead of repeating when tiled.
Also affects non-power of two video textures.

The video texture repeats correctly on Chrome and Firefox.

The issue has been encountered both on macOS and iOS.
Tested on:
MacBook PRO 16 2021 macOS Monterey (12.3) Safari 15.4
iPhone 12 mini (15.3.1)


Comparing examples between Safari and Chrome will show difference (video attached): 


Power of two example (modified mdn example - https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Tutorial/Animating_textures_in_WebGL):
https://kmmod.github.io/webgl-video-texture/

Non power of two example:
https://www.shadertoy.com/view/7t3cDH
Comment 1 Radar WebKit Bug Importer 2022-12-02 11:44:32 PST
<rdar://problem/102912865>
Comment 2 Kimmo Kinnunen 2022-12-02 11:48:06 PST
Pull request: https://github.com/WebKit/WebKit/pull/7078
Comment 3 EWS 2022-12-04 23:48:46 PST
Committed 257365@main (c340b7473bca): <https://commits.webkit.org/257365@main>

Reviewed commits have been landed. Closing PR #7078 and removing active labels.