Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Weird Texture2D Bug?

$
0
0

@mikehaggar wrote:

I have a 960x540 image. It's a row of black pixels followed by a row of transparent pixels then a row of black pixels followed by a row of transparent pixels etc... Basically, it starts with a row of black pixels and alternates between that and a row of transparent pixels. That's all there is to it. Anyway, when I draw this image using spriteBatch to a 960x540 RenderTarget 2D at some point the spacing between the rows gets messed up. A pattern is formed and every 40 pixels or so two of the black rows appear next to each other. I've recreated the images multiple times and this still happens with every version. I've also triple-checked the size of the RenderTarget2D, the size of the image, the size of the draw Rectangle for the image supplied to SpriteBatch etc... I'm sort of at a loss...

Posts: 11

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles