How to draw a triangle with OpenGLRenderer?

I’m trying to get a simple opengl program up and running so I can follow some webgl tutorials and learn with haxe. Trying to draw a triangle from the lime & openfl examples demonstrating using opengl, but can’t get it to work. It doesn’t render the triangle.

Here’s my class, can anyone point me in the right direction?


Does renderer.setShader (null) make a difference? I think you may need to do this if you are plugging in your own shader to unbind the attributes used in the default shader. Like this:

Nope that didn’t work either.