OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <meta charset="utf-8"> |
| 5 <title>Simulated Attrib 0 Bug Test</title> |
| 6 <script src="../resources/js-test-pre.js"></script> |
| 7 <script src="../conformance/resources/webgl-test.js"></script> |
| 8 </head> |
| 9 <body> |
| 10 <div>Simulated Attrib 0 Bug Test</div> |
| 11 <div id="description"></div> |
| 12 <div id="console"></div> |
| 13 <script> |
| 14 var context = create3DContext(); |
| 15 var program = loadStandardProgram(context); |
| 16 |
| 17 context.useProgram(program); |
| 18 debug("This line attempts to draw with 0x7FFFFFFF triangles with attrib 0 off"); |
| 19 debug("A buggy simulated attrib 0 impl will probably mult 0x7FFFFFFF * sizeof(ve
c4)"); |
| 20 shouldBe("context.drawArrays(context.TRIANGLES, 0, 0x7fffffff);", "undefined"); |
| 21 debug("This line attempts to draw with 0x7ffffff triangles."); |
| 22 debug("A buggy simulated attrib 0 impl will probably pass 0x7FFFFFF0 to glBuffer
Data and then not check that it failed"); |
| 23 shouldBe("context.drawArrays(context.TRIANGLES, 0, 0x7ffffff);", "undefined"); |
| 24 debug("") |
| 25 debug("NOTE!: You may not see any manifestation here. Check your impl for these
issues"); |
| 26 </script> |
| 27 </body> |
| 28 </html> |
| 29 |
OLD | NEW |