Added basic GL error 'debugging'.