SFML community forums
Help => Graphics => Topic started 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.
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.
-
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?
-
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