Bug 248543

Summary: Video Texture set to repeat is clamped
Product: WebKit Reporter: Kamil Modzelewski <kamil>
Component: WebGLAssignee: Kimmo Kinnunen <kkinnunen>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, kbr, kkinnunen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: All   
OS: iOS 16   
Attachments:
Description Flags
Tiled video texture set to repeat safari vs chrome none

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.