Added support for checking gl errors easily