Closed
Bug 814113
Opened 12 years ago
Closed 5 years ago
Win WebGL shader accesses only last element of array
Categories
(Core :: Graphics: CanvasWebGL, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: arrakaij, Unassigned, NeedInfo)
References
()
Details
Attachments
(1 file)
1.94 KB,
text/plain
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/17.0 Firefox/17.0 Build ID: 20121119183901 Steps to reproduce: While writing WebGL shaders, i pass light sources to an array in fragment shader (attached) While working fine in Chrome and Opera, FF on Windows seems to access only the last element of the array, while assignment of values is okay (see console output). Bug could be seen on: Machine 1, AMD, Radeon 5900: Win8Prox64 (ff16: ok, ff17: fail), Ubuntu 12.10x64: (all "ok") Machine 2, AMD, WinXPx32, NV onboard (Both ok) Machine 3, Intel Core i7, IntelHD2000, Win7HomeX64, Ubuntu 12.10x64 (all OK) Machine 4, Intel Core 2, MobilityRadeon, Win7UltimateX64 (ff16: fail, ff17: fail) Maybe Radeon Problem? Drivers are newest (12.10) Testcase is on http://trinity.digitalinsanity.de/bugs/lodge2/, source on http://trinity.digitalinsanity.de/bugs/lodge2/lodge2.tar.bz2 look for calls in http://trinity.digitalinsanity.de/bugs/lodge2/lodge.js/lodge.js line 334+ gl.getUniformLocation calls for lights line 392+ (passing lights to shader) line 364+ (drawing function) The testcase should display a cube with 3 lights (r, g and b). only one frame is rendered. Actual results: On given Machines, only the last element of an array in shader is processed while using "for" on an array Expected results: all array elements shoud be processed
Reporter | ||
Updated•12 years ago
|
Comment 1•12 years ago
|
||
FWIW, in Firefox 17 I get Error: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLCanvasElement.getContext] Source File: http://trinity.digitalinsanity.de/bugs/lodge2/lodge.js/lodge.js Line: 228 Issue is WFM on Firefox 18 and newer.
Comment 3•5 years ago
|
||
2019-03-06
This bug is part of a group of bugs which have had an open needinfo for at least 12 weeks.
The request for information has not been answered, and we can't move forward on the bug so we are closing it.
If the defect is still present, please reopen this bug with an updated report.
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•