Jump to content

glDrawElements: Source and destination textures of the draw are the same.


ForgeableSum
 Share

Recommended Posts

  • 1 month later...
  • 1 month later...

Here we go, this may or may not have the same reason why you are experincing this, but it's reproducible.  It's a browser warning in the console.  When the warning is displayed, the draw operation appears to have worked.

This code (typed into console with Phaser  running, note that what everybody else calls 'game' I call 'mpg, so adjust as necessary), works without warnings:

var rtBG = mpg.add.renderTexture(1024, 1024, 'rtBG');
rtBG.renderRawXY(mpg.world, 0, 0);
var imgRTBG = mpg.add.image(0, 0, rtBG);

 

Where as this code, with 2nd and 3rd lines swapped, produces the warning:

var rtBG = mpg.add.renderTexture(1024, 1024, 'rtBG');
var imgRTBG = mpg.add.image(0, 0, rtBG);
rtBG.renderRawXY(mpg.world, 0, 0);

 

Here's the console log for the warning:

warning.png

Link to comment
Share on other sites

  • 1 month later...
 Share

  • Recently Browsing   0 members

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