OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html><head> |
| 3 <meta charset="utf-8"> |
| 4 <title>OpenGL for the web</title> |
| 5 |
| 6 <script type="application/x-javascript" src="../util.js"></script> |
| 7 <link rel="stylesheet" type="text/css" href="../unit.css" /> |
| 8 <script type="application/x-javascript" src="../unit.js"></script> |
| 9 |
| 10 <script type="application/x-javascript"> |
| 11 Tests.message = "This was segfaulting when the GL context got GC'd (in glXDestro
yContext)"; |
| 12 Tests.testSeg = function () { |
| 13 var canvas = document.getElementById('canvas'); |
| 14 var gl = canvas.getContext(GL_CONTEXT_ID); |
| 15 |
| 16 var fbo = gl.createFramebuffer(); |
| 17 gl.bindFramebuffer(gl.FRAMEBUFFER, fbo); |
| 18 } |
| 19 </script> |
| 20 |
| 21 </head><body> |
| 22 <canvas id="canvas" width="400" height="400"></canvas> |
| 23 </body></html> |
OLD | NEW |