Jump to content
  • Advertisement


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


Locking problem

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

Hi, when i'm locking the backbuffer under direct3d 9 an error occurs... i use the following code:
	if (FAILED(m_lpBackBuffer->LockRect(&rectLock, NULL, D3DLOCK_NO_DIRTY_UPDATE)))
		// this happens!
		return FALSE;

the first thought was that i didn't receive the backbuffer correctly, but some line before the method GetDesc works correctly... what is my mistake?


[edited by - Fireface on December 15, 2003 9:40:56 AM]   

Share this post

Link to post
Share on other sites
Do you have a lockable z-buffer?
i.e. D3DPRESENT_PARAMTERS::Flags set to D3DPRESENT_LOCKABLE_BACKBUFFER (or something similar)?

If you had the debug runtime selected, it''d have told you

Muhammad Haggag

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!