Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Changes in Firefox Nightly 2009/11/02

  1. #11
    Member
    Join Date
    Oct 2009
    Location
    London, UK
    Posts
    90

    Re: Changes in Firefox Nightly 2009/11/02

    Yup, not working for me either in Firefox. However,

    Code :
    var f2 = new CanvasFloatArray([12.3, 23.4, 34.5]);
    alert(f2[2]);
    ...works in Chrome.

  2. #12
    Member
    Join Date
    Oct 2009
    Location
    London, UK
    Posts
    90

    Re: Changes in Firefox Nightly 2009/11/02

    It's probably worth adding -- I've got loads of code that does things like this:

    Code :
        var vertices = [
             0.0,  1.0,  0.0,
            -1.0, -1.0,  0.0,
             1.0, -1.0,  0.0
        ];
        gl.bufferData(gl.ARRAY_BUFFER, new CanvasFloatArray(vertices), gl.STATIC_DRAW);
    ...and I'm sure everyone else has similar stuff. So that presumably means that it's just the reading of the CanvasFloatArray that's broken, not the actual creation and setting of the values.

  3. #13
    Member Coolcat's Avatar
    Join Date
    Oct 2009
    Location
    NRW, Germany
    Posts
    75

    Re: Changes in Firefox Nightly 2009/11/02

    Only the following works in Firefox so far:
    Code :
    var cfa = new CanvasFloatArray(...);
    alert("len=" + cfa.length);

  4. #14
    Member
    Join Date
    Oct 2009
    Location
    London, UK
    Posts
    90

    Re: Changes in Firefox Nightly 2009/11/02

    Yup. On the other hand, the data must be getting stored somewhere, even if the [] operator can't retrieve it -- otherwise the call to gl.bufferData wouldn't get passed anything in the example code I gave...

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 3
    Last Post: 04-29-2011, 08:55 AM
  2. Unable to run Webgl in Firefox nightly under (ubuntu) linux
    By laszlo in forum OS & Browser specific questions
    Replies: 17
    Last Post: 05-15-2010, 06:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •