• Advertisement

Archived

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

Change Resolution Problem

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

Hi All! I am developing a 3D Engine with DirectX and there is a problem in changing the resolution. When I have chosen the resolution, then my engine will destroy all DirectDraw and Direct3D object such as Z-Buffer, front-buffer, DirectX object etc. After that, my engine will re-create them and it is succeed, but a error D3DERR_ZBUFFER_NOTPRESENT have returned when the model is render??? How can I solve this? Thank a lot!!! Please help me!! Thomas

Share this post


Link to post
Share on other sites
Advertisement
You probably are doing this, but, do you remember to reattach the zbuffer when you recreate it?

Share this post


Link to post
Share on other sites
I am sure that my engine has done it! It is because creation and re-creation are used the same function!

Thomas

Share this post


Link to post
Share on other sites
I had similar problems when I started programming DirectDraw - the easiest solution is to SetDisplayMode, and then create your surfaces. This eases the headaches.

TheTwistedOne
http://www.angrycake.com

Share this post


Link to post
Share on other sites

  • Advertisement