Sign in to follow this  
BtySgtMajor

Odd DirectDraw Behaviour (yeah, I know it's DirectDraw)

Recommended Posts

Hey all, First off, yeah, I know I'm using DirectDraw (like, IDirectDraw4 or whatever), but I'm just trying out some things. Anyway, I was working on this project last year and had my grahpics working just fine. I stopped working on it because of actual work, and eventually switched video cards (now running a GeForce 6800 GT OC). I've come back to work on it now that I have a few minutes here and there. I noticed now that the background graphics are messing up pretty bad. They're simply DirectDraw surfaces that are copied/blitted to another surface, and then put onto the back-buffer for flipping. I'll put some rough pseudocode here that I think is the culprit: create DX Surface1; create DX Surface2; blit to Surface1; blit to Surface2; copy Surface1 to back-buffer; After some investigating, if I don't blit to Surface2, Surface1 (the main background surface) is just fine! But if I leave the blitting to Surface2 in, Surface1 gets corrupted/messed up. It looks like Surface2 is overwrting Surface1! I've checked the pointer addresses and they're different, so I'm pretty sure I'm not using the same surface both times. Has anyone run across this before? I'm thinking it might be related to my video card, but, I have no way of really knowing right now. Thanks in advance for any help! Cheers, Duncan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this