Jump to content
  • Advertisement
Sign in to follow this  
vladic2000x

DX9: How to determine stretching caps

This topic is 2782 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello there. I have a Mobile Intel 945 Chipset. If I use StretchRect() from a RenderTarget texture to the Back Buffer and pass NULL to pDestRect then everyting is OK, but if I try to pass a custom RECT then the method FAILS. My question is how to determine if the device has stretching capabilities or not.

Share this post


Link to post
Share on other sites
Advertisement
From the documentation:
Quote:
Stretching is not supported if the destination surface is an off-screen plain surface but the source is not.
And as far as I know, the backbuffer is an offscreen plain surface.

Why don't you just render a textured quad? T|hat's probably going to be faster than using StretchRect anyway.

Share this post


Link to post
Share on other sites
Steve, I'm sorry, I made a mistake when described the issue. Actually I'm using StetchRect to copy from BackBuffer to the render target surface. Any ideas?

Share this post


Link to post
Share on other sites
OK :) Solved the issue. I was specifying the wrong destination rectangle. For those who might be struggling with some driver issues for that method, I would recommend reading this post:

http://www.ms-news.net/f3591/about-stretchrect-2200764.html

Best,

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!