Rendertarget changes in XNA Game Studio 2.0

Originally posted to Shawn Hargreaves Blog on MSDN, Wednesday, November 21, 2007

The bad news:

If you had a program using rendertargets that worked with the XNA Framework 1.0, it might not still work with 2.0.

 

The good news:

Things are actually much more consistent now, honest!

Let me explain...

 

How rendertargets used to work (1.0)

On Windows:

On Xbox:

Problem with the 1.0 behavior:

It was far too easy to write a program that worked fine on one platform, but then rendered incorrectly when you run it on the other!

 

How rendertargets work now (2.0)

By default:

If you don't like that default:

Shawn recommends:

Other good stuff:

Blog index   -   Back to my homepage