🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Locking surfaces after restoring them

Started by
-1 comments, last by CGameProgrammer 24 years, 9 months ago
After the surface memory is lost, and restored (with lpDDS->Restore() and the ddutil.cpp function DDReLoadBitmap), locking the surface no longer works. It gives me a DDERR_SURFACELOST error. But it's wrong, because Blt, BltFast, and GetDC work perfectly fine.

Any ideas why this is happening?

------------------
~CGameProgrammer( );

~CGameProgrammer( ); Developer Image Exchange -- New Features: Upload screenshots of your games (size is unlimited) and upload the game itself (up to 10MB). Free. No registration needed.

This topic is closed to new replies.

Advertisement