tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

bindFramebufferLeaveNonZero.html (871B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <!--
      6 Copyright (c) 2019 The Khronos Group Inc.
      7 Use of this source code is governed by an MIT-style license that can be
      8 found in the LICENSE.txt file.
      9 -->
     10 <title>OpenGL for the web</title>
     11 
     12 <script type="application/javascript" src="../util.js"></script>
     13 <link rel="stylesheet" type="text/css" href="../unit.css" />
     14 <script type="application/javascript" src="../unit.js"></script>
     15 
     16    <script type="application/javascript">
     17 Tests.message = "This was segfaulting when the GL context got GC'd (in glXDestroyContext)";
     18 Tests.testSeg = function () {
     19    var canvas = document.getElementById('canvas');
     20    var gl = getGLContext(canvas);
     21 
     22    var fbo = gl.createFramebuffer();
     23    gl.bindFramebuffer(gl.FRAMEBUFFER, fbo);
     24 }
     25 </script>
     26 
     27 </head><body>
     28    <canvas id="canvas" width="400" height="400"></canvas>
     29 </body></html>