<h5 dir="auto">Description of the problem</h5>
<p dir="auto">To reproduce this issue</p>
<ul dir="auto">
<li>Create PlaneGeometry</li>
<li>Upload any non-power of 2 texture eg 1600 x 1200</li>
</ul>
<p dir="auto">When mipmaping is disabled:<br>
material.map.minFilter = THREE.LinearFilter;<br>
material.map.magFilter = THREE.LinearFilter;<br>
texture is displayed properly.</p>
<p dir="auto">When mipmapping is enabled (default) , looking close up (first mipmap) is looks ok, with angel, distance texture looks wrong, mipmaps are scaled, stretched.</p>
<p dir="auto">Textures 1024 x 1024 are working properly.</p>
<p dir="auto">As far as we can see problem occurs only on Windows 7 64bit and Chrome. In Internet Explorer works fine.<br>
Tested in latest version of Three.js editor r85 but issue is present in other versions (tested r77).</p>
<p dir="auto">Disabled mipmaps<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/29403180/27091471-801b05b6-5060-11e7-929b-7392194ba642.png"><img src="https://user-images.githubusercontent.com/29403180/27091471-801b05b6-5060-11e7-929b-7392194ba642.png" alt="img_13062017_172239_0" style="max-width: 100%;"></a></p>
<p dir="auto">Enabled mipmaps (default)<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/29403180/27091470-80133f16-5060-11e7-9822-e9261a2b8dee.png"><img src="https://user-images.githubusercontent.com/29403180/27091470-80133f16-5060-11e7-9822-e9261a2b8dee.png" alt="img_13062017_171942_0" style="max-width: 100%;"></a></p>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r85</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r77</li>
</ul>
<h5 dir="auto">Browser</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Windows 7 64 bit</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li>
</ul>
<h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
<p dir="auto">Intel Core i7 , Nvidia 1080 GTX<br>
Chrome Version 58.0.3029.110 (64-bit)</p>
<h5 dir="auto">Description of the problem</h5>
<p dir="auto">When texture in not power of two, it generates wrong mipmaps (I suppose) after resize of texture. When mipmaps are not generated 2D texture displays correctly.<br>
Inside "WebGLTextures.js" there is a function "makePowerOfTwo" where image is resized. I have made quick workaround to achive correct rendering on Windows 7:<br>
after line: <code class="notranslate">context.drawImage( image, 0, 0, canvas.width, canvas.height );</code><br>
I  add: <code class="notranslate">context.getImageData(0, 0, canvas.width, canvas.height);</code><br>
and it seems to be resised properly to generate proper mipmaps, but I'm not sure why and if calling <code class="notranslate">getImageData</code> is proper way...<br>
On Firefox it looks fine but got console message Error: <code class="notranslate">WebGL warning: texImage2D:  Conversion requires pixel reformatting</code></p>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r85</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li>
</ul>
<h5 dir="auto">Browser</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li>
</ul>
<h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
<p dir="auto">Windows 7 32-bit, SP1, CPU i7 2600S</p>