Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

CreateOffscreenPlainSurface fails with D3DPOOL_SYSTEMMEM

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 ingramb   Members   

440
Like
0Likes
Like

Posted 28 November 2012 - 02:30 PM

On my machine, I am able to create surfaces using CreateOffscreenPlainSurface in the system memory pool.

On another machine, this call fails. On the failing machine, I am able to use CreateTexture with a single mip level, and then retrieve that surface instead.

I notice that the documentation for CreateOffscreenPlainSurface does not mention D3DPOOL_SYSTEMMEM as a valid pool http://msdn.microsoft.com/en-us/library/windows/desktop/bb174358(v=vs.85).aspx. However, it is logical, and I have seen other code on the internet that uses it in this way.

So, is the documentation wrong and SYSTEMMEM is valid? Or should I not rely this? Is there a better way to create a single surface for use with UpdateSurface?

Edited by ingramb, 29 November 2012 - 11:44 AM.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.