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)

17 Branch
x86_64
Windows 8
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: arrakaij, Unassigned, NeedInfo)

References

()

Details

Attachments

(1 file)

Attached file Fragment shader source
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
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.
Link is gone now. Please provide a new link.
Flags: needinfo?(arrakaij)

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.

Attachment

General

Created:
Updated:
Size: