nikhilhs Posted April 5, 2005 Posted April 5, 2005 I have the following code to render to a texture: Bitmap bm=new Bitmap(512, 512); Texture tex=new Texture(device, bm, Usage.RenderTarget, Pool.Default); device.SetRenderTarget(0, tex.GetSurfaceLevel(0)); device.Clear(ClearFlags.Target | ClearFlags.ZBuffer , Color.Blue, 1f, 0); SetupCamera(); device.BeginScene(); Draw(); device.EndScene(); device.Present(); It's crashing on creation of the texture. Is there another option other than the bitmap creation? Thanks. -Nick Quote
DrunkenHyena Posted April 19, 2005 Posted April 19, 2005 The Debug Info should be able to tell you why it is crashing. http://www.drunkenhyena.com/cgi-bin/view_article.pl?chapter=1;article=4;lang=cpp Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.