just small correction of this thread title.
Unlike Quake, COD4 has nothing to do with OpenGL. They support only DirectX API.