Change Resolution Problem

Started by
2 comments, last by Thomas 24 years, 1 month ago
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
Advertisement
You probably are doing this, but, do you remember to reattach the zbuffer when you recreate it?
I am sure that my engine has done it! It is because creation and re-creation are used the same function!

Thomas
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
TheTwistedOnehttp://www.angrycake.com

This topic is closed to new replies.

Advertisement