Archived

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

Garbled surface

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

I could try your code on my machine and see what I get if you would like. And I could take a look at your code too if you wanted.

Share this post


Link to post
Share on other sites
Aldacron,
This may be unrelated, but with the release of Ultima IX and the new TNT drivers, Ultima IX was broke--- they have since released a patch. Something may have changed in the drivers...

One thing to check, if you're using 16-bit color, is the pixel format. Atleast, double check that.

Six

Share this post


Link to post
Share on other sites
Any DirectXperts out there know what could cause a DX backbuffer surface to be filled with garbage? This whole problem started when I downloaded Nvidia's latest Riva TNT reference drivers (Detenator 3.53 if I remember correctly). After that none of my compiled code worked. I kept getting the DDERR_SURFACELOST return when trying to lock the backbuffer. Restoring didn't help either. I have since went to the extreme of formatting the harddrive and reinstalling Windows 95 with the factory drivers for my Creative Graphics Blaster 16MB Riva TNT card. Now the surface locks fine but when I call flip from the primary, I get a screen full of junk. Kind of reminds me of DOS when forgetting to clear video memory out.

I have pored through my code again and again. I have compiled other code samples and they work just fine. So that tells me it's a problem with my code, which worked fine before I ever downloaded those drivers. This whole mess has got me banging my head against the wall (it's either that or my monitor).
Replacing the calls to the back buffer with the primary surface displays just fine. Only the backbuffer is grabled.

I've ruled out the factory drivers because the code I compiled from other people (books, net) worked fine. I've cut and pastted into my code and it still didn't work! All the commercial products I have that use DX work fine as well. Any one have any ideas as to what could cause this? I'm using DX 7 BTW.

Share this post


Link to post
Share on other sites