Cocos2DXNA / cocos2d-xna

XNA Port of Cocos2d-X
www.cocos2dxna.com
227 stars 123 forks source link

InvalidOperationException during draw without stencil buffer #385

Closed totallyeviljake closed 10 years ago

totallyeviljake commented 10 years ago

A recent change to clear the frame buffer with a stencil buffer is causing an InvalidOperationException unless you request the stencil buffer.

Add this to your AppDelegate ctor to work around this problem:

        graphics.PreferredDepthStencilFormat = Microsoft.Xna.Framework.Graphics.DepthFormat.Depth24Stencil8;

will provide a fix shortly.

totallyeviljake commented 10 years ago

This was resolved in 1.3.0.2