3

I am writing a plugin for an existent C++ DirectX9 application. Everything was working fine until they decided to switch to IDirect3DDevice9Ex for performance reasons.

Now I get the "D3DPOOL_MANAGED is not valid with IDirect3DDevice9Ex" error when using "D3DXCreateFontA" to render text.

Question: Is there some workaround to draw text while using IDirect3DDevice9Ex, or some good library that allows me to draw text without using managed textures?

Listing
  • 1,147
  • 2
  • 14
  • 29

2 Answers2

4

Since i don't know a good answer, maybe this is the same question with more and better answers:

IDirect3DDevice9Ex and D3DPOOL_MANAGED?

Good luck!

Community
  • 1
  • 1
DirkMausF
  • 705
  • 5
  • 13
-1

A manage pool keeps a copy of the resource in system memory. This allows the process to release the graphics device to other programs and then be able to recreate any lost assets using the copy in system memory.

To resolve this, try using a centralized resource cache that will dump all your resources on device lost and then recreate them when the device is recovered.

Nico
  • 3,748
  • 1
  • 18
  • 31