如何测试WebGLTexture对象是否"完整"?
目前我收到此消息:
[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'
我得到这个警告,因为渲染循环试图在其图像加载完成之前使用纹理,那么如何解决这个问题呢?