GL Error Checking added

After any rendering is done on an animated frame, GL will report any
errors and stop animation if they are present.