SFML community forums

Help => Graphics => Topic started by: dewyatt on January 03, 2009, 04:36:11 pm

Title: Image::Copy
Post by: dewyatt on January 03, 2009, 04:36:11 pm
Using sf::Image::Copy (or LoadFromPixels w/GetPixelsPtr) I keep getting a single white pixel in the bottom-right corner of the destination image.

Code: [Select]

sf::Image sourceImage;
... (load image, etc)
sf::Image destImage;
destImage.Create(sourceImage.GetWidth(), sourceImage.GetHeight());
destImage.Copy(sourceImage, 0, 0);

So here destImage would look just like sourceImage, except it would have a white pixel in the bottom-right corner.

This doesn't seem to happen every time, but often it does.
I'm using the latest SVN.
I can post more info later if needed.
Title: Image::Copy
Post by: Laurent on January 03, 2009, 04:52:51 pm
Thanks for your feedback.

Can you give a sample code + image which always reproduces the problem? Or is it really happening randomly, even with the same context?
Title: Image::Copy
Post by: dewyatt on January 03, 2009, 10:41:20 pm
I can't seem to produce a working example outside of some sfttf code.

I'll have to investigate it a little more.
I'm tired of it today, so maybe tomorrow.  :P