Commit graph

5 commits

Author SHA1 Message Date
Imanol Fernandez
328dacee8b Improve test_webgl_triangle.html 2016-10-03 16:17:19 +02:00
Emilio Cobos Álvarez
ee8ecd9299 webgl: tests: Fix webgl triangle test
It was giving a ton of whitespace errors, and I don't know if it's due
to nodeValue or ANGLE...
2016-04-03 01:21:56 +02:00
Emilio Cobos Álvarez
6fcc03c965 webgl: Make the api return the context limits and use them for validations
This allows keeping the VertexAttrib* calls asynchronous.

Another option would be to do the validation in the apply() function,
but that'd require us passing an unnecessary channel around and add
extra synchronization.

The counterpart of this is that it has to be updated when the context
changes, but that's less problem.
2016-04-03 01:21:56 +02:00
Emilio Cobos Álvarez
89b65f3a02 webgl: Use mediump in triangle test
Support for this should be almost universal.
2015-12-07 18:02:24 +01:00
Diego Marcos
79b8e7aa34 It implements enough WebGL spec to draw a triangle 2015-05-02 19:21:05 -07:00