Added opengl check