Remove unsupported OpenGL function for cross compiler.