提交 ee36790e 编写于 作者: M Mr.doob

WebGLRenderer: Removed setTexture hack.

上级 bdb8a96e
......@@ -3337,13 +3337,6 @@ THREE.WebGLRenderer = function ( parameters ) {
this.setTexture = function ( texture, slot ) {
// if the image has been uploaded into a separate renderer, will need to reupload to this renderer
if ( ( texture.image && texture.image.complete !== false ) && texture.__webglInit === true && properties.get( texture ).__webglInit === undefined ) {
texture.needsUpdate = true;
}
if ( texture.needsUpdate === true ) {
var image = texture.image;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册