Move OpenGLCheckResult to a header file
(cherry picked from commit ad9e57195655786abab39cc495cb292d7836f0f1)