Jump to content

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


jflowers45
 Share

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

http://flashysubstance.com/edmodoCORS/phaser-cors-canvas.html

 

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"

 

http://flashysubstance.com/edmodoCORS/phaser-cors-auto.html

 

Any insight would be appreciated.

 

-Joe

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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