I am getting the following error, even though the code runs through the Draw could twice and then it errors:
XNA Framework HiDef profile does not support alpha blending or ColorWriteChannels when using rendertarget format Single.
The BlendState that I'm using is:
BlendState newBlendState = new BlendState()
{
AlphaBlendFunction = BlendFunction.Add,
AlphaSourceBlend = Blend.One,
AlphaDestinationBlend = Blend.One,
ColorBlendFunction = BlendFunction.Add,
ColorSourceBlend = Blend.One,
ColorDestinationBlend = Blend.One
};
I even set the SamplerStates to PointClamp before the actual draw is called:
device.DrawUserIndexedPrimitives<VertexPositionTexture>(PrimitiveType.TriangleList, domeVerts, 0, 1024, ib, 0, 1860);
I don't understand how it can run successfully twice, and then fail. Any help would be greatly appreciated.
A screenshot of the problem:
