MYST3: backport recent refactor of OpenGL draw cube routine