<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - UNPACK_FLIP_Y_WEBGL breaks HLS video textures"
   href="https://bugs.webkit.org/show_bug.cgi?id=163866">163866</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>UNPACK_FLIP_Y_WEBGL breaks HLS video textures
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Safari 10
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>OS X 10.10
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebGL
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>electroteque&#64;gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dino&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi there after some extensive testing I have confirmed that in Safari 10 it has broken WebGL video textures for HLS streams. It is an issue on IOS 9 Safari as well as Webkit nightly. 


It is regarding this FlipY flag

_gl.pixelStorei( _gl.UNPACK_FLIP_Y_WEBGL, true );

If this is disabled the video texture is rendering but it is upside down.Although I believe this flag is needed for hardware acceleration correct ? 


Reference to three.js ticket. 

<a href="https://github.com/mrdoob/three.js/issues/9754">https://github.com/mrdoob/three.js/issues/9754</a>

Reference to possibly related webkit ticket #162491

I have found some raw webgl examples that I have modified for the test. The HLS streams use a CORS proxy because of the known severe limitation there. 

With FlipY disabled and &quot;working&quot;

<a href="http://dev.electroteque.org/threejs/webglworking.html">http://dev.electroteque.org/threejs/webglworking.html</a>


With FlipY enabled

<a href="http://dev.electroteque.org/threejs/webglflip.html">http://dev.electroteque.org/threejs/webglflip.html</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>