Problems with CreateOffscreenPlainSurface with D3DPOOL_MANAGED as a parameter

Started by
1 comment, last by load_bitmap_file 19 years, 1 month ago
Greetings, does anyone know why a call of

//m_cursorImage is a LPDIRECT3DSURFACE9
m_d3dDevice->CreateOffscreenPlainSurface(32, 32, D3DFMT_A8R8G8B8, D3DPOOL_MANAGED, &m_cursorImage, NULL);


would fail? It works when D3DPOOL_DEFAULT is specified instead of D3DPOOL_MANAGED, but I have no idea why.
Advertisement
D3DPOOL_MANAGED is not allowed with off screen surfaces. It says so on MSDN.
.:<<-v0d[KA]->>:.
Quote:Original post by v0dKA
D3DPOOL_MANAGED is not allowed with off screen surfaces. It says so on MSDN.


Aieeee! I just doublechecked the documentation and sure enough it's there. I'd better triple check next time >_<

Anyway, thank you for clearing that up.

This topic is closed to new replies.

Advertisement