This simple script ensures that Windows standalone Unity projects run in OpenGL mode.
This allows plugins that require OpenGL mode to work even if you forget the -Force-OpenGL command line parameter. It also provides a reminder if the Unity Editor is run in DirectX mode. This script has no effect on IOS, Mac, Flash, or any other platform.
To use it, just attach the script to any game object in the first loaded scene.