Sign in to follow this  
  • entries
    201
  • comments
    88
  • views
    100299

Just before your eyes

Sign in to follow this  
Metron

73 views

that's where my solution for the rendertarget problem was... and I realized it this night when I wrote my blog.

In fact, the solution was to only backup the default render target and not all render targets. So the basic algo looks like this :

if new rendertarget != NULL
then - if default rendertarget backup == NULL
then backup default rendertarget

- Set new rendertarget

else - if default rendertarget backup != NULL
then - Set default rendertarget
- default rendertarget backup = NULL


This enables me to change the rendertarget as often as I want without losing the default rendertarget which is created my the device.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now