Pixi.js: "INVALID_VALUE: texSubImage2D: no pixels" error on creating a 100x100 RenderTexture

Created on 7 Feb 2017  路  6Comments  路  Source: pixijs/pixi.js

Using the value of 100 as the size of a RenderTexture like this:

var brt = new PIXI.BaseRenderTexture(100, 100, PIXI.SCALE_MODES.LINEAR, 1);
var rt = new PIXI.RenderTexture(brt);

...produces these errors on my Mac (Windows untested):

  • Chrome: "WebGL: INVALID_VALUE: texSubImage2D: no pixels"
  • FireFox: "Error: WebGL: texSubImage2D: Source must not be null."

This is reproducible in the examples if you change line 17:
https://pixijs.github.io/examples/#/basics/render-texture.js

There are no errors for values of 99 or 101, but I'm kinda set on 100.

Stale 馃捑 v4.x (Legacy) 馃摙 Accepting PRs 馃暦 Bug 馃ザ Low Priority

Most helpful comment

Confirmed also on Win10, Chrome 57

All 6 comments

Confirmed also on Win10, Chrome 57

I'm also getting this, Macbook OSX, Chrome and Firefox. Also, in FF, getting this additional info error

Error: WebGL: texSubImage2D: Source must not be null. pixi.min.js:8:18913
Error: WebGL: drawElements: This operation requires zeroing texture data. This is slow. pixi.min.js:14:26606

Still happening in Chrome 69. Related issue: https://github.com/pixijs/pixi.js/issues/3372

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SukantPal picture SukantPal  路  27Comments

tobireif picture tobireif  路  24Comments

themoonrat picture themoonrat  路  29Comments

confile picture confile  路  25Comments

trusktr picture trusktr  路  30Comments