title: dart:web_gl: RENDER WARNING: texture bound to texture unit 0 is not renderable
body: <p>I'm getting the error <code>[.WebGLRenderingContext]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering or is not 'texture complete'</code> when I run my web app in dartium. I've been trying to troubleshoot this issue for two days, including a full rewrite of the code, But I can't isolate the issue.</p>
  
  <p>I think the problem lies in this piece of code, however.</p>
  
  <pre><code>  void main() {
    ...
      var texture = gl.createTexture();
      var image = new ImageElement();
      image.onLoad.listen((e) {
        gl.bindTexture(webGL.TEXTURE_2D, texture);
        gl.texImage2DImage(webGL.TEXTURE_2D, 0, webGL.RGBA, webGL.RGBA, 
                         webGL.UNSIGNED_BYTE, image);
        gl.texParameteri(webGL.TEXTURE_2D, webGL.TEXTURE_MAG_FILTER, webGL.NEAREST);
        gl.texParameteri(webGL.TEXTURE_2D, webGL.TEXTURE_MIN_FILTER, webGL.NEAREST);
        gl.bindTexture(webGL.TEXTURE_2D, null);
      });
      image.src = "tex.png";
    ...
    }
  </code></pre>
  
  <p>tex.png is 32x32</p>
  
  <p>Any ideas about what the problem is?</p>