Closed
Bug 1000443
Opened 11 years ago
Closed 11 years ago
WebGL: texSubImage2D fails on float textures
Categories
(Core :: Graphics: CanvasWebGL, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1003607
People
(Reporter: actiondan, Assigned: u480271)
References
Details
Attachments
(1 file)
628 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
Steps to reproduce:
1. Create a WebGL context with the OES_texture_float extension
2. Create, bind an initialise a float texture using texImage2D
3. Try to update the texture using texSubImage2D
You can run this JSFiddle with the console open to catch the error:
http://jsfiddle.net/5htBG/3/
or there is a file attached (texsubimage2d_float.html)
Actual results:
texSubImage2D fails to update the texture, throwing this error instead:
Error: WebGL: texSubImage2D: format or type doesn't match the existing texture
Expected results:
texSubImage2D should succeed, no error should be thrown regarding format.
I suspect this bug may be due to the extra type checking added to pass conformance tests:
https://bugzilla.mozilla.org/show_bug.cgi?id=667222
Perhaps the problem might be that the desktop OpenGL internal format is "RGBA32F", while in OpenGL ES or WebGL this is simplified as just RGBA and FLOAT?
Float textures are popular for things like GPU-based particle systems, and texSubImage2D provides a neat way to update a subset of particle data.
Updated•11 years ago
|
Status: UNCONFIRMED → NEW
Component: Untriaged → Canvas: WebGL
Ever confirmed: true
Product: Firefox → Core
Updated•11 years ago
|
Version: 28 Branch → Trunk
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•