Sign in to follow this  

RenderToSurface with Format=A8R8G8B8

This topic is 4835 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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

Share this post


Link to post
Share on other sites

This topic is 4835 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this