Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

ACAC

Converting a surface format

This topic is 5527 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

Im trying to copy a surface to the back buffer in dx9, but i get an error saying it cannot write because of the different formats, I was wondering if there was a way to convert D3DFMT_X1R5G5B5 to D3DFMT_X8R8G8B8 This seems unrealistic heh, but I cant think of any other way as the back buffer is D3DFMT_X8R8G8B8 so whatever i write to it needs to have the same format. Help? Thanks in advance Ash.

Share this post


Link to post
Share on other sites
Advertisement
Cant you just create your surface as the backbuffer format? I mean, if you know you will copy it there, you can do that. Right?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!