Prevent OpenGL errors from eating memory.
Improve Effect object error detection.