Hi,
I am creating RenderTarget2D objects and clearing them with GraphicsDevice.Clear(Color.Transparent) before I do any drawing. This works fine on most devices and on the GenyMotion emulator running 2.3.7.
Unfortunately though I have just tested on a Google Nexus One running 2.3.6 and it’s not working, the background of the RenderTarget remains black.
Is anyone aware of any issues around this or does anyone have any suggestions for another way I could try clearing the RenderTarget to transparent before drawing?
cheers
public RenderTarget2D CreateRenderTarget2D( int width, int height )
{
RenderTarget2D texture = new RenderTarget2D (
game.GraphicsDevice,
width,
height,
false,
SurfaceFormat.Color,
DepthFormat.None,
0,
RenderTargetUsage.PreserveContents);
game.GraphicsDevice.SetRenderTarget (texture);
game.GraphicsDevice.Clear (Color.Transparent);
game.GraphicsDevice.SetRenderTarget (null);
return texture;
}