Return error when using unsupported OpenGL funcs.