RenderToSurface with Format=A8R8G8B8
Hi,
my application throws an exception when i call begin of the renderToSurface object.
The RenderToSurface object has Format=A8R8G8B8. It works when i use X8R8G8B8.
I am using directx9.0c and a radeon 9800.
The format checking with CheckDeviceType, CheckDeviceFormat and CheckDepthStencilMatch says ok.
I can see in the devicecapsviewer that my card supports the A8R8G8B8 render target format.
What i am doing wrong ?
regards,
atem
Using an unsupported format wouldn't throw an exception. Using an interface that wasn't properly created will though.
1) Are you checking your return codes for errors?
2) Have you set up Debug Info (See Forum FAQ)?
3) Linked with the debug version of D3DX?
Do all three and you will very likely know what the problem is.
1) Are you checking your return codes for errors?
2) Have you set up Debug Info (See Forum FAQ)?
3) Linked with the debug version of D3DX?
Do all three and you will very likely know what the problem is.
the error was thrown because i forgot to create the target texture with the same format as the render to surface object.
thanks for advise drunkenhyena.
regards,
arem
thanks for advise drunkenhyena.
regards,
arem
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement