Archived

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

vbisme

GetAttachedSurface()

Recommended Posts

When I call DD7 GetAttachedSurface() I get the return error as DDERR_NOTFOUND: Requested item was not found. I don''t know what''s wrong. I created my own function to create a primary complex surface with 1 back buffer. Before when I pass the structure DDSCAPS2 as a param to my function everything works fine, but when I localized the variable instead of global and passed as a param as before the GetAttachedSurface() returns that error.

Share this post


Link to post
Share on other sites
I suggest keeping the back buffer pointer global anyway, I found parsing screen surfaces can get messy and cause various problems.

  Game Download  ZeroOne Realm

Share this post


Link to post
Share on other sites