Jump to content

Image renders on Canvas but not WebGL: is this CORS or a bug?


Recommended Posts

Hi All,

  I've run into a bit of an odd issue trying to load images from one domain in particular.  I initially thought it was a CORS issue  but it only happens in WebGL, not CANVAS.  Anyone understand this?


Here's a canvas example with no problem



Here's a WebGL example using the same exact image that pukes with the following error: "Uncaught SecurityError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The cross-origin image at https://u.ph.edim.co/default-avatars/46_140.jpg may not be loaded"




Any insight would be appreciated.



Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...