コード例 #1
0
        internal static bool OnApplyChanges(GraphicsDeviceManager __instance)
        {
            var @this = __instance;

            DrawState.UpdateDeviceManager(@this);

            @this.PreferMultiSampling            = Config.DrawState.EnableMSAA;
            @this.SynchronizeWithVerticalRetrace = true;
            @this.PreferredBackBufferFormat      = Config.DrawState.BackbufferFormat;
            if (Config.DrawState.DisableDepthBuffer)
            {
                @this.PreferredDepthStencilFormat = DepthFormat.None;
            }

            return(true);
        }