Attach src
Catch OpenGL errors