Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Qix99

DDERR_INVALIDPARMS with CreateSurface

This topic is 6116 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

When I try create a surface bigger than 1024 in width i get a DDERR_INVALIDPARMS - the only reason i think its 1024 is its windowed mode and my screen size is 1024*768

Share this post


Link to post
Share on other sites
Advertisement
Many graphics cards have a restriction where any off screen surfaces you create cannot be wider than the primary surface. (There is a caps flag you can check to detect these kinds of cards).

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites
If your hardware doesn''t support it, you can''t.

You have 2 choices:

1. Use a system memory offscreen plain surface - this should (AFAICR) let you create a bigger one, but it will perform much worse than a video memory.

2. Use multiple smaller surfaces to represent a bigger one. This is what we do for textures on graphics hardware which cannot do textures bigger than 256x256.

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites

  • 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!