Results 1 to 3 of 3

Thread: NO_ERROR_FAILTURE in texImage2D method

  1. #1
    Junior Member
    Join Date
    Oct 2009
    Posts
    11

    NO_ERROR_FAILTURE in texImage2D method

    I've found this:
    http://code.google.com/p/chromium/so...e-test/?r=1328
    It's working fine with chrome, but I've tried it in Mozilla and it's throwing an error:
    Code :
    [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsICanvasRenderingContextWebGL.texImage2D]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: file:///D:/%C5%81UKALDO/webGL/chromium/demo.js :: createCheckerboardTexture :: line 208" data: no]
    The line with error is:
    Code :
    gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGB, 2, 2, 0, gl.RGB, gl.UNSIGNED_BYTE, pixels);
    Did you tried passing textures like this?

  2. #2
    Junior Member
    Join Date
    Sep 2009
    Location
    Mozilla
    Posts
    4

    Re: NO_ERROR_FAILTURE in texImage2D method

    This should be fixed in tomorrow's Firefox nightly build; before this we were supporting JS arrays instead of CanvasArrays in TexImage2D, which was wrong.

  3. #3
    Junior Member
    Join Date
    Oct 2009
    Posts
    11

    Re: NO_ERROR_FAILTURE in texImage2D method

    now works great. thanks a lot.

Similar Threads

  1. Best method for RGBA textures
    By zed in forum WebGL - General
    Replies: 10
    Last Post: 01-09-2011, 03:42 PM
  2. Unimplemented Method, glGetPointerv
    By dalbom in forum OpenGL ES general technical discussions
    Replies: 0
    Last Post: 08-19-2009, 06:29 PM
  3. Interface method does not have a self pointer
    By rajv in forum OpenMAX AL - feedback
    Replies: 1
    Last Post: 03-14-2008, 03:09 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
  •