Skip to main content
gamedev.net
🔒 Locked

Converting a surface format

Started by ACAC May 4, 2003 at 5:54 AM 1 replies 1k views
Original Post
ACAC
ACAC
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.
aker_jus
aker_jus
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?
GraphicsWare|RenderTechhttp://www.graphicsware.com3D Graphics & Solutions
thy MC
thy MC
Why ?
Please AGREE or I will LIBERATE you

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.