title: Unexpected stretched texture
body: <p>I have the following code snippets:</p>
  
  <pre><code>    ctx.texParameteri(ctx.TEXTURE_2D, ctx.TEXTURE_MAG_FILTER, ctx.LINEAR);      
      ctx.texParameteri(ctx.TEXTURE_2D, ctx.TEXTURE_MIN_FILTER, ctx.LINEAR);
  
      ctx.texParameteri(ctx.TEXTURE_2D, ctx.TEXTURE_WRAP_S, ctx.REPEAT);
      ctx.texParameteri(ctx.TEXTURE_2D, ctx.TEXTURE_WRAP_T, ctx.REPEAT);
  </code></pre>
  
  <p>My texture dimension is <strong>256x256</strong>.</p>
  
  <p><strong>Option 1</strong> -- my polygon</p>
  
  <pre><code>    const x0 = 100;
  const x1 = -x0;
  const z0 = x0;
  const z1 = -z0;
  var vertices = new Float32Array(
      [  x0, 0, z1,  x1, 0, z1,  x1, 0, z0,   x0, 0, z0]);
  </code></pre>
  
  <p>The result: The texture is stretched so I lose the detail.</p>
  
  <p><strong>Option 2</strong> -- my polygon (notice that this is a much smaller polygon than option 1)</p>
  
  <pre><code>const x0 = 5;
  const x1 = -x0;
  const z0 = x0;
  const z1 = -z0;
  var vertices = new Float32Array(
      [  x0, 0, z1,  x1, 0, z1,  x1, 0, z0,   x0, 0, z0]);
  </code></pre>
  
  <p>The result: I can see the details of my texture.</p>
  
  <p>My understanding is that the REPEAT (TEXTURE_WRAP_S and TEXTURE_WRAP_T) option will give me the details even in Option 1. Why is the texture stretched in option 1? Did I misunderstand it?</p>
  
  <p>This is running WebGL on Chrome Canary build.</p>
  
  <p>What did I do wrong? </p>
  
  <p>Thanks in advance for your help.</p>