Okay, I thought I fixed it, and it does indeed work better than before. However, now if I go to a few different locations the game will crash. It gave me a directx ZTARG error.

On another thread I saw that someone mentioned that it could not create the buffer, and would then try to render to the screen - causing the error.

Is there any way to avoid this? Maybe a wait statement until it creates the buffer?