OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <meta charset="utf-8"> |
| 5 <!-- |
| 6 |
| 7 /* |
| 8 ** Copyright (c) 2012 The Khronos Group Inc. |
| 9 ** |
| 10 ** Permission is hereby granted, free of charge, to any person obtaining a |
| 11 ** copy of this software and/or associated documentation files (the |
| 12 ** "Materials"), to deal in the Materials without restriction, including |
| 13 ** without limitation the rights to use, copy, modify, merge, publish, |
| 14 ** distribute, sublicense, and/or sell copies of the Materials, and to |
| 15 ** permit persons to whom the Materials are furnished to do so, subject to |
| 16 ** the following conditions: |
| 17 ** |
| 18 ** The above copyright notice and this permission notice shall be included |
| 19 ** in all copies or substantial portions of the Materials. |
| 20 ** |
| 21 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 22 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 23 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 24 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
| 25 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
| 26 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
| 27 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. |
| 28 */ |
| 29 |
| 30 --> |
| 31 <title>OpenGL for the web</title> |
| 32 |
| 33 <script type="application/x-javascript" src="../util.js"></script> |
| 34 <link rel="stylesheet" type="text/css" href="../unit.css" /> |
| 35 <script type="application/x-javascript" src="../unit.js"></script> |
| 36 |
| 37 <script type="application/x-javascript"> |
| 38 Tests.message = "This was segfaulting when the GL context got GC'd (in glXDestro
yContext)"; |
| 39 Tests.testSeg = function () { |
| 40 var canvas = document.getElementById('canvas'); |
| 41 var gl = getGLContext(canvas); |
| 42 |
| 43 var fbo = gl.createFramebuffer(); |
| 44 gl.bindFramebuffer(gl.FRAMEBUFFER, fbo); |
| 45 } |
| 46 </script> |
| 47 |
| 48 </head><body> |
| 49 <canvas id="canvas" width="400" height="400"></canvas> |
| 50 </body></html> |
OLD | NEW |