Archived

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

Lohrno

How to copy surfaces to the backbuffer in DirectX 9?

Recommended Posts

Well, How do you do it? I''ve been working a little bit out of the book "The Zen of Direct 3D Game Programming." And I have now been trying to convert code to DirectX 9. So far, it''s been not so bad, but I got to the point where I want to copy a surface to the backbuffer, and I can not. I use the CreateOffscreenPlainSurface function, but when I try to do an UpdateSurface to the backbuffer, it always gives me Access Violations... Does anyone know? -=Lohrno

Share this post


Link to post
Share on other sites
Ahhh I just found out...you have to have the offscreen surface be default, and instead of using UpdateSurface, use StrechRects.

-=Lohrno

Share this post


Link to post
Share on other sites