title: WebGL - wait for texture to load
body: <p>How do I test if the <code>WebGLTexture</code> object is 'complete' ?</p>
  
  <p>Currently I get this message:
  <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></p>
  
  <p>I get this warning because the render-loop is trying to use the texture before its image has finished loading, so how to fix that?</p>