WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
169999
texImage2D for a half-float texture only accepts null
https://bugs.webkit.org/show_bug.cgi?id=169999
Summary
texImage2D for a half-float texture only accepts null
Florian Bösch
Reported
2017-03-23 01:42:10 PDT
Calling texImage2D for a half-float texture only accepts null on iOS. The WebGL specification states that acceptable values are null, - The specification states that texImage2D for half-float has to accept null, Uint16Array, <image>, <video> and <canvas>:
https://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/
- The conformance test for WebGL tests for the upload behavior fails on iOS:
https://www.khronos.org/registry/webgl/sdk/tests/conformance/extensions/oes-texture-half-float.html
Attachments
Patch
(25.80 KB, patch)
2019-10-17 18:28 PDT
,
Dean Jackson
simon.fraser
: review+
Details
Formatted Diff
Diff
EWS run 2
(66.59 KB, patch)
2019-10-18 14:43 PDT
,
Dean Jackson
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Marcin Ignac
Comment 1
2017-04-19 06:26:29 PDT
Just run into the same issue as well. The conformance suite fails in Version 10.1 (12603.1.30.0.34) Release 27 (Safari 10.2, WebKit 12604.1.15.2)
Radar WebKit Bug Importer
Comment 2
2017-04-19 12:08:45 PDT
<
rdar://problem/31713571
>
stefan
Comment 3
2018-01-16 07:14:44 PST
Tested on OSX/macOS 10.12, Safari Technology Preview (Release 47, Safari 11.1, WebKit 12605.1.19.1) -go to
https://files.unity3d.com/stefan/bugs/webkit_errors/index.html
--this is just a default empty scene from lates Unity (2017.3) -open browser console -see the following error being logged twice: --WebGL: INVALID_OPERATION: texImage2D: type HALF_FLOAT_OES but ArrayBufferView is not NULL -appears to have no visual effects on the scene -error is not being thrown on latest Firefox or Chrome on same OSX
jonobr1
Comment 4
2018-10-21 23:55:40 PDT
I'm running into the same issue as well. Found in this bug:
https://bugs.webkit.org/show_bug.cgi?id=183321
jujjyl
Comment 5
2019-08-07 08:03:06 PDT
Unity3D engine runs into this issue as well. Safari 8 - Safari 12 are affected. Tested as a workaround to use GL.texImage2D(..., null); to create an uninitialized texture, but then immediately afterwards using GL.texSubImage2D(..., /*type=*/0x8d61/*GL_HALF_FLOAT_OES*/, uint16Array); to upload the content, but unfortunately that fails too, i.e. GL.texSubImage2D() neither allows passing a half-float array. Also tried a workaround to pass a Float32Array, or a Float64Array instead of a Uint16Array, wishfully thinking that perhaps the error message would be wrong, and half-float textures could be populated by submitting another array type instead, but that does not work either. As result, Unity3D support of half-float textures is disabled, which prevents Safari from running new Unity3D content, which utilize half-floats.
Dean Jackson
Comment 6
2019-10-17 18:28:51 PDT
Created
attachment 381258
[details]
Patch
Dean Jackson
Comment 7
2019-10-17 18:31:59 PDT
***
Bug 183321
has been marked as a duplicate of this bug. ***
Dean Jackson
Comment 8
2019-10-18 14:43:55 PDT
Created
attachment 381332
[details]
EWS run 2
Dean Jackson
Comment 9
2019-10-18 15:30:28 PDT
Committed
r251303
: <
https://trac.webkit.org/changeset/251303
>
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