Advertisement Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    201
  • comments
    88
  • views
    101161

Just before your eyes

Sign in to follow this  
Metron

105 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
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!