This is causing the MacOS build to fail.  This needs to move up right under the `#if OPENGL`.