All pastes #640907 Raw Edit

Anonymous

public text v1 · immutable
#640907 ·published 2007-07-31 19:53 UTC
rendered paste body
		protected override GraphicsDeviceInformation FindBestDevice( bool anySuitableDevice )
		{
			GraphicsDeviceInformation information = base.FindBestDevice( anySuitableDevice );

			foreach( GraphicsAdapter adapter in GraphicsAdapter.Adapters )
			{
				if( adapter.Description == "PerfHUD" )
				{
					information.Adapter = adapter;
					information.DeviceType = DeviceType.Reference;
					information.CreationOptions = CreateOptions.HardwareVertexProcessing;
				}
			}

			return information;
		}