0
Vote

InvalidOperationException in the bloom component.

description

System.InvalidOperationException was unhandled
  Message="The active render target and depth stencil surface must have the same pixel size and multisampling type."
  Source="Microsoft.Xna.Framework"
  StackTrace:
       at Microsoft.Xna.Framework.Graphics.GraphicsDevice.VerifyDepthRenderTargetCompat()
       at Microsoft.Xna.Framework.Graphics.GraphicsDevice.VerifyCanDraw(Boolean bUserPrimitives, Boolean bIndexedPrimitives)
       at Microsoft.Xna.Framework.Graphics.GraphicsDevice.DrawIndexedPrimitives(PrimitiveType primitiveType, Int32 baseVertex, Int32 minVertexIndex, Int32 numVertices, Int32 startIndex, Int32 primitiveCount)
       at Microsoft.Xna.Framework.Graphics.SpriteBatch.RenderBatch(Texture2D texture, SpriteVertex[] vertices, Int32 offset, Int32 count)
       at Microsoft.Xna.Framework.Graphics.SpriteBatch.Flush()
       at Microsoft.Xna.Framework.Graphics.SpriteBatch.End()
       at Xfinity.Rendering.BloomComponent.DrawFullscreenQuad(Texture2D texture, Int32 width, Int32 height, Effect effect, IntermediateBuffer currentBuffer) in C:\Users\Pon\Documents\Visual Studio 2005\Projects\TheTrench\XfinityEngine\Rendering\BloomComponent.cs:line 633
       at Xfinity.Rendering.BloomComponent.DrawFullscreenQuad(Texture2D texture, RenderTarget2D renderTarget, Effect effect, IntermediateBuffer currentBuffer) in C:\Users\Pon\Documents\Visual Studio 2005\Projects\TheTrench\XfinityEngine\Rendering\BloomComponent.cs:line 602
       at Xfinity.Rendering.BloomComponent.Draw(GameTime gameTime) in C:\Users\Pon\Documents\Visual Studio 2005\Projects\TheTrench\XfinityEngine\Rendering\BloomComponent.cs:line 550
       at Microsoft.Xna.Framework.Game.Draw(GameTime gameTime)
       at TheTrench.Trench.Draw(GameTime gameTime) in C:\Users\Pon\Documents\Visual Studio 2005\Projects\TheTrench\TheTrench\Trench.cs:line 173
       at Microsoft.Xna.Framework.Game.DrawFrame()
       at Microsoft.Xna.Framework.Game.Tick()
       at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
       at Microsoft.Xna.Framework.GameHost.OnIdle()
       at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
       at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at Microsoft.Xna.Framework.WindowsGameHost.Run()
       at Microsoft.Xna.Framework.Game.Run()
       at TheTrench.Program.Main(String[] args) in C:\Users\Pon\Documents\Visual Studio 2005\Projects\TheTrench\TheTrench\Program.cs:line 17

comments