Skip to main content
gamedev.net
🔒 Locked

Release Backbuffer?

Started by vbisme 2 replies 200+ views
Original Post
vbisme
vbisme
If you have an attached backbuffer to the primary surface in directx7 for flipping, do you need to release the backbuffer (lpBackbuffer->Release()) as well as you do the primary(lpPrimary->Release()) or other surfaces?
zenic
zenic
actually, i didn''t think you did.
check the DirectX documentation, but i am quite sure it says that any implicitly created surfaces are automatically released.

but i agree - this is probably the wrong place to post
ImmaGNUman
ImmaGNUman
If you used GetAttachedSurface on your Primary buffer to get the back buffer, then all you have to do is release the primary surface.

-----------------------------

A wise man once said "A person with half a clue is more dangerous than a person with or without one."
-----------------------------A wise man once said "A person with half a clue is more dangerous than a person with or without one."The Micro$haft BSOD T-Shirt

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.