• Advertisement

Archived

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

LPDIRECTDRAWPALETTE->Release()

This topic is 6066 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 am currently reading Ian Parberry''s Computer Game Programming with DirectX 7, and I noticed that he calls the release function to of the DDraw object and all of the surfaces in response to WM_QUIT message, but he does not call the release functions of the Primary and secondary Palettes, nor does he call them any where else in the code. Does anyone know why this is? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
AFAIK (or docs: DirectDraw->DD Essetials->Palettes->Sharing Palettes) will the palettes be released - if their ref count reaches zero - when SetPalette() is called with a NULL palette interface pointer.

Bjørn.

Share this post


Link to post
Share on other sites

  • Advertisement