SFML community forums
Help => Graphics => Topic started by: V0idExp on February 18, 2012, 03:27:32 pm
-
There are two demonstration programs:
1) Working (http://pastebin.com/eyCxXXDt)
2) Not working (http://pastebin.com/FLdFrUtp)
...and screenshots showing the result of their execution:
1) (http://s16.postimage.org/tgkcf4569/good.jpg) (http://postimage.org/image/tgkcf4569/)
2) (http://s15.postimage.org/6skf14jdz/Bad.jpg) (http://postimage.org/image/6skf14jdz/)
The only difference between these two programs is that in the second Texture and Sprite objects are created and initialized BEFORE RenderWindow.
I expected that there would be no difference when initializing RenderWindow after the creation of resources, since they do not look interconnected until the drawing, but after asking on #sfml IRC channel I've been told that it's a matter of context, which is created when a window is initialized. So, in doubt if this is a bug or not, I'm posting my "discover" here. :) What you think about this?
(Running under Arch Linux with 3.2.6 kernel, 64bit with Intel GM965 graphics chip)
-
Linux?
https://github.com/SFML/SFML/issues/160
-
Yes, 3.2.6 Kernel, 64bit, Intel GM965 gfx chip
-
Ok. Next time, don't forget to check the issue tracker first ;)