This module should work as a standalone with a few tiny import changes:

The interesting bit is checkgl, used for example like this:

checkgl!glDrawArrays(GL_POINTS, 0, 10);

then you get a nice debug message if glDrawArrays reports an error. It will also report if a previous error has occurred and wasn't cleared, but of course in that case it won't be able to tell you where.

I wrap every OpenGL call with checkgl, it helps immensely.

Yes, I will do so in the future too.

Reply via email to